Re: Red Hat Linux-based Job Scheduler

2013-04-22 Thread Larry Ploetz
On 4/22/13 2:28 PM, David Stuart wrote: Afternoon, We're bringing in an application that will have between 11 and 14 servers running Red Hat linux. The vendor is recommending a job scheduler. We're aware of the Tivoli product from IBM. And I know ASG has one, as does CA. Can anyone suggest

Re: Abuse of "git": stupid or wise "archive/backup" strategy? OFF TOPIC - using rsync for backups

2012-11-02 Thread Larry Ploetz
On 11/2/12 8:15 AM, Mark Post wrote: Rsync will make the backup copy if you specify "-b", but it certainly won't give you annotations. Considering that lots of other people use git for maintaining system configuration files across multiple systems, I don't see anything fundamentally differen

Re: one final observation on my piping to multiple processes.

2011-02-10 Thread Larry Ploetz
oetz -- <http://www.ciw.edu/> <http://www-ciwdpb.stanford.edu/> <http://www.arabidopsis.org/>*Larry Ploetz Systems Administrator Carnegie Institution for Science Department of Plant Biology The Arabidopsis Informa

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Larry Ploetz
On 2/9/11 1:08 PM, Edmund R. MacKenty wrote: > > Doh! I should have remembered that. So the functions I wrote could have been > implemented as: > > Ntee() { > tee "$@" >/dev/null > } > > Just goes to show that there's usually several ways to do anything in Linux. > I focused on doing it entirely

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Larry Ploetz
On 2/9/11 12:40 PM, McKown, John wrote: > tee can output to multiple files? The man page implies only a single file. Hmmm...maybe you need a new enough tee also: SYNOPSIS tee [OPTION]... [FILE]... DESCRIPTION Copy standard input to each FILE, and also to standard output. > So I g

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Larry Ploetz
If you have a new enough bash, you can: bzcat data*bz2 | tee >(process1) >(process2) >(process3) ... | processn but the stdout from process1..n get intermixed unless redirected to files. (Tom Meyer taught me that!) - Larry On 2/9/11 12:19 PM, McKown, John wrote: > Yeah, it sound weird. What I

Re: Newbie - "neat" use of lsof

2011-02-07 Thread Larry Ploetz
On 2/7/11 1:44 PM, Larry Ploetz wrote: > > Those are the ones I seem to use frequently. > Oops...and: lsof /a/mount/point # who's using this mount point? Same info as fuser command lsof +D /a/directory # who's using any files or directories at or under this

Re: Newbie - "neat" use of lsof

2011-02-07 Thread Larry Ploetz
Yes! And the offset operand ("lsof -o irradu00.g*bz2") of lsof may work on Linux-390 (although I think its Linux in general it doesn't work on), which will tell you what byte offset the file descriptor points to! Other useful lsof examples: lsof -c bzip2 # list the open files for all bzip2 comm

Re: vale openSolaris

2010-08-16 Thread Larry Ploetz
On 8/16/10 10:52 AM, McKown, John wrote: I was taught it was pronouced something like: "wa lay". The latin "v" is more like a "w" sound. Oh, like waylay: "to lie in wait for or attack from ambush." Are you saying Oracle has untoward intentions ?!? ;-) - Larry

Re: vale openSolaris

2010-08-16 Thread Larry Ploetz
On 8/16/10 7:41 AM, McKown, John wrote: "vale" is Latin for "goodbye". Oracle is apparently closing down their support for OpenSolaris. Oracle does not appear to believe the open software is of much importance. They don't seem to have much interest that I can see in Java either. And suing Goo

Re: tar extract - code conversion.

2010-06-03 Thread Larry Ploetz
On 6/3/10 8:51 AM, Edmund R. MacKenty wrote: ConvertDirTree() { find "$1" -type f | while read file; do tmp="$file.ic$$" if iconv -f "$2" -t "$3" $file"> "$tmp"&& \ chown --reference="$file" "$tmp"&& \ chmod --reference="$file" "$tmp; then This is purely nit-pick

Re: Off Topic - Survey on Job Creativity for IT/Tech People

2010-05-03 Thread Larry Ploetz
On 4/13/10 3:31 PM, Larry Ploetz wrote: Sorry if this is inappropriate for this group... My wife is doing an I/O (Industrial/Organizational, not Input/Output!) psychology masters thesis and desperately needs more respondents for proper statistical significance. We'd really appreciate

Off Topic - Survey on Job Creativity for IT/Tech People

2010-04-13 Thread Larry Ploetz
a Ellefson sonja.ellef...@gmail.com <http://us.mc355.mail.yahoo.com/mc/compose?to=sonja.ellef...@gmail.com> Thanks, - Larry Ploetz -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.mar

Re: Setting up anon ftp

2009-05-13 Thread Larry Ploetz
On 5/12/09 7:40 AM, Richard Gasiorowski wrote: Lionel, When you ftp with anonymous the files known by the group ftp. A quick bypass is to chmod the directory to 755 or 777 and that should get you in. Then I would look at the config file of you ftp application - for instance is vsftp change to

Re: Solaris v. Linux

2009-03-26 Thread Larry Ploetz
$ x=$$; until [ $x -eq 0 ]; do ps -ocmd= -p $x; x=$(ps -oppid= -p $x); done -bash sshd: la...@pts/0 sshd: larry [priv] /usr/sbin/sshd init [3] Feh. *Larry Ploetz Systems Administrator Carnegie Institution of Washington Department of Plant Biology The Arabidopsis Information Resource 650 325 1521

Re: Security question and using scp

2009-01-23 Thread Larry Ploetz
On 1/22/09 4:38 PM, John Summerfield wrote: Larry Ploetz wrote: Scott Rohling _/*DID NOT*/_ wrote: If I must configure bind, maybe I need a text editor. If I can use a text editor maybe I can edit /etc/sudoers I said that That's what sudoedit (not visudoers!) is for. The point is t

Re: Security question and using scp

2009-01-22 Thread Larry Ploetz
Scott Rohling wrote: If I must configure bind, maybe I need a text editor. If I can use a text editor maybe I can edit /etc/sudoers That's what sudoedit (not visudoers!) is for. - Larry -- For LINUX-390 subscribe / signoff /

Re: bash shell question

2009-01-11 Thread Larry Ploetz
On 1/11/09 8:44 AM, John Summerfield wrote: Probably. How do you know how many blocks to skip? I don't -- I calculate approximate bytes not-sparse from end-of-file using stat -- see below. Coincidentally, it happens to be the number of bytes in all and only the blocks at the end of the file th

Re: bash shell question

2009-01-09 Thread Larry Ploetz
On 1/9/09 4:53 PM, Patrick Spinler wrote: ... At this point I'd suggest reporting a bug through the distributions, probably all three of Novell (via OpenSUSE), Redhat (via Fedora) and Debian. Create a bug entry in each distro's bug track. If you provide a reproducible problem report, and espec

Re: bash shell question

2009-01-08 Thread Larry Ploetz
On 1/8/09 12:21 PM, Erik N Johnson wrote: Does this failure to behave as one might hope perhaps constitute a bug in a widely used admin utility? Hmmm...I think so, now that you mention it...at least, I know I'd prefer logrotate to keep sparse files sparse. - Larry --

Re: bash question.

2009-01-08 Thread Larry Ploetz
On 1/8/09 9:36 AM, John McKown wrote: Is there any better way, in a bash script, to pipe both stdout and stderr from an application other than using a subshell? So far the only way that I've thought of to do it is: (command parm1 ... 2>&1) | othercommand Others have answered the question, but

Re: bash shell question

2009-01-07 Thread Larry Ploetz
On 1/7/09 1:44 PM, John Summerfield wrote: I see no reason logrotate should not handle sparse files well when copying them. Yeah, there's no reason why it shouldn't, but it doesn't (see my empiric test in previous post). 06:42 [sum...@numbat ~]$ cp --help | grep sparse --sparse=WHEN

Re: bash shell question

2009-01-07 Thread Larry Ploetz
On 1/7/09 11:47 AM, Mark Post wrote: There are only a very few sparse files ever written to /var/log/. If space is a concern because they might get really big when being copied, then having logrotate compress them will solve that. The few sparse files I am aware of aren't kept open all the

Re: bash shell question

2009-01-07 Thread Larry Ploetz
On 1/7/09 10:15 AM, Mark Post wrote: On 1/7/2009 at 5:44 AM, John Summerfield wrote: -snip- logrotate expects you're logging sensibly. John is not. "sensibly" means the program can close and reopen the logfile on demand. That is not a requirement for logrotate. If nothing else the "copy

Re: bash shell question

2009-01-07 Thread Larry Ploetz
assumption that log files can reasonably be 99.999% saved, since one doesn't inspect 99% of all logs' contents. However, as John points out, one should be aware of potential loss. -- <http://www.ciw.edu/> <http://www-ciwdpb.stanford.edu/> <http://www.arabidopsis.org/>*

Re: bash shell question

2009-01-06 Thread Larry Ploetz
On 1/6/09 1:50 PM, John McKown wrote: I've got a small problem. I have a daemon which I cannot easily restart because it is production and people are using it. The daemon is started with something like: daemon args>>daemon.log The file "daemon.log" is getting very huge. The correct way to fix t

Re: Messaging a Linux system

2008-11-04 Thread Larry Ploetz
be useful to trigger running a script (Rexx or other) when, e.g., a spool directory changes. - Larry *Larry Ploetz Systems Administrator Carnegie Institution of Washington Department of Plant Biology The Arabidopsis Information Resource 650 325 1521 x 296 [EM

Re: SSH Null Passphrase (originally Re: ZFS or LVM2 on Debian?)

2008-10-08 Thread Larry Ploetz
On 10/8/08 1:40 PM, John McKown wrote: On Wed, 8 Oct 2008, Larry Ploetz wrote: - Larry PS wow, I guess it's been a while since I've touched MVS...ah, z/OS -- lrecl 1, blocksize 0?!? Well, that is my own weird idea of how to store "byte stream" data. The RECFM=FB s

SSH Null Passphrase (originally Re: ZFS or LVM2 on Debian?)

2008-10-08 Thread Larry Ploetz
On 10/8/08 9:17 AM, John McKown wrote: I didn't see the original message. Apparently the OP wants to backup RHEL/Intel files on z/OS. I will mention a very nice product which is free, but not open source. It is Co:Z from Dovetailed Technologies. http://www.dovetail.com What this can do is estab

Re: Timestamp a command?

2008-09-23 Thread Larry Ploetz
On 9/23/08 12:21 PM, Tom Duerbusch wrote: I would like an easy way to prefix the results of a command with the timestamp. The command: vmstat 10 8640> vmstat.out I start this up at 5 PM, so I can see if some process starts using the Linux system at night. Great results, but without a timest

Re: Distribution ages, was: Linux version

2008-08-20 Thread Larry Ploetz
Alan Cox wrote: 1: http://groups.google.com/group/comp.os.linux.development/msg/a32d4e2ef3bcdcc6 2: http://www.knoppix.net 3: http://www.skolelinux.org 4: http://www.ubuntu.com/ Now if anyone has some dates of when they were started for Slackware, SuSE, or RedHat we can know which

Re: vi alternative?

2008-08-05 Thread Larry Ploetz
Reminds me of when we used to use Bell Lab's QED editor on 3270's on TSO, when FSE was "too expensive". I installed it at USC and actually taught seminars in it to TSO users. -- For LINUX-390 subscribe / signoff / archive access

Re: curiousity question: Linux usage: many or few

2008-03-27 Thread Larry Ploetz
... It does require a kernel modification. -- Carnegie Institution for Science <http://www.ciw.edu/> Department of Plant Biology <http://www-ciwdpb.stanford.edu/> The Arabidopsis Information Resource <http://www.arabidopsis.org/> Larry Ploetz Systems Administrator Carnegie Institu

Re: Changing password on multiple zLinux servers

2007-10-26 Thread Larry Ploetz
<><><>

Re: I am missing something basic with bash scripting.

2007-09-07 Thread Larry Ploetz
PROTECTED] ~]$ Or, if you prefer RPN: $ dc -e '4k 14595.470 200.00 + 4331.00 / p' 3.4161 -- Carnegie Institution - At the Frontiers of Science Larry Ploetz Systems Administrator Carnegie Institution of Washington Department of Plant Biology, TAIR 650 325 1521 x

Re: I am missing something basic with bash scripting.

2007-09-07 Thread Larry Ploetz
I wrote: larry$ bash -c 'set -x; list="a|b|c"; t=a; eval "case $t in ( $list ) echo one;; b ) echo two;; esac' Not sure if anyone's interested in this technique, but if you do try the above, it won't work -- some email client/server and/or copy-and-paste messed it up. It should be: |bash -c

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
a in ++ echo one one (although James would still have the problem of one system name being a subset of another system name.) -- Carnegie Institution - At the Frontiers of Science Larry Ploetz Systems Administrator Carnegie Institution of Washington Department of Plant

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
s? -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- Carnegie Inst

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
Mark Post wrote: If that doesn't help, then put a "set -x" right after the #!/bin/sh line, and send the output, along with the command invocation. or put "-x" on the shebang line: #! /bin/sh -x -- Carnegie Institution - At the Frontiers of Science Larry Plo

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
Stricklin, Raymond J wrote: I would, however, use -e instead of -f, because the system name is probably a directory, not a plain file. indeed, then why not use -d ? ok r. Both good points -- use the operator best suited to the task. If you want to make *sure* it's a file, use -f; if di

http://www.marist.edu/htbin/wlvindex?LINUX-390

2007-09-06 Thread Larry Ploetz
I posted three responses with the wrong email address: You could do something else entirely, like: larry$ a=a larry$ echo $list a|b|c larry$ [[ $list =~ $a ]] && echo hi || echo ho hi larry$ a=d

Re: Trimming a File

2007-09-04 Thread Larry Ploetz
Mark Post wrote: count=$(wc -l /var/log/toolarge | cut -f1 -d" ") let start=$count- if [ ${start} -le 1 ]; then echo start is set to 1 let start=1 fi start=$((count > 1 ? count - 1 : 1)) like c. - Larry -

Re: OpenSSH and 'HostBased' Authentication

2007-07-24 Thread Larry Ploetz
Mark Post wrote: On Fri, Jul 20, 2007 at 5:54 PM, in message <[EMAIL PROTECTED]>, Larry Ploetz <[EMAIL PROTECTED]> wrote: -snip- in your sshd_config file, to keep them all in one place. Then you could allow/prevent users from updating their own authorized_keys. Or even put al

Re: OpenSSH and 'HostBased' Authentication

2007-07-20 Thread Larry Ploetz
f '%s\t%s\n' $(date +%Y%m%d%H%M%S) usera >> /var/ssh/root_access; bash -c \'$SSH_ORIGINAL_COMMAND\'" in his authorized_keys file, with "usera" unique to each public key indicating whose key was used (but not who used the key). -- Carnegie Institution - At the F

Re: How to replace a "entry" in PATH?

2007-04-13 Thread Larry Ploetz
Leland Lucius wrote: Quoting "McKown, John" <[EMAIL PROTECTED]>: #!/bin/sh newhome="/java160" if [ ! -z "$JAVA_HOME" ]; then PATH=$(echo "$PATH" | sed -e "s#$JAVA_HOME/bin##g;s/::/:/g") Disregarding the adjacent colons (which don't matter anyway), reasonably recent bashes can make the subst

Re: Linux-390 List Archives

2003-01-08 Thread Larry Ploetz
Post, Mark K wrote: John, What I do is send a get linux-vm 0212 command to [EMAIL PROTECTED] every month (changing the file name, of course) and pull down the entire archive. I have a complete set starting from 9812. I grep through them to find what I'm looking for. Very fast, and well