Re: bash error handling help

2005-06-04 Thread Chris F.A. Johnson
les to $i:/tmp/temp" > scp -i ~/.ssh/$i /usr/local/bin/myfile.sh [EMAIL PROTECTED]:/tmp/temp > > echo "Executing myfile.sh" > log "Executing myfile.sh" > ssh -i ~/.ssh/$i [EMAIL PROTECTED] "/tmp/temp/myfile.sh" > >

Re: OT, simple bash alias expansion question

2005-06-08 Thread Chris F.A. Johnson
sh -i cmd.bash > > bash -i -O expand_aliases cmd.bash > bash -O expand_aliases -i cmd.bash I also suggested adding "shopt -s expand_aliases" to the script. You replied that is wasn't necessary. You didn't try it

Re: partition magic-ally

2005-06-08 Thread Chris F.A. Johnson
your drive up any more than you absolutely have to. > 3. any other suggestions/rearrangement of my partition scheme? See above. -- Chris F.A. Johnson <http://cfaj.freeshell.org> == She

Re: Top posting

2005-06-09 Thread Chris F.A. Johnson
e) means the opposite of tight lose (rhymes with booze) means to misplace If virus took a latin plural, it could be viri, but never virii. The accepted plural is viruses. -- Chris F.A. Johnson <http://cfaj.freeshell.org> ===

Re: Request for window manager recommendations

2005-06-12 Thread Chris F.A. Johnson
t; me. :) And just as good if you do maximize windows -- like me. I usually have one to four maximized windows on each of 10 desktops. What I like most about WindowMaker is its configurability. Recent versions of KDE have, perhap

Re: OT: bash positional parameters

2005-06-16 Thread Chris F.A. Johnson
In bash you can do: var=$1 INFILE=${!var} To make it portable, so that your script can be run in any Bourne-type shell: eval "INFILE=\${$1}" -- Chris F.A. Johnson <http://cfaj.freeshell.org> ===

Re: bash not running ~/.bash_profile

2005-06-17 Thread Chris F.A. Johnson
urced. > Is there some way I can fix this problem? I tried to add a > script S10sourceprofile to /etc/rc2.d/ but that didn't work. -- Chris F.A. Johnson <http://cfaj.freeshell.org> ==

Re: Is 'rename' missing or is it just me?

2005-06-17 Thread Chris F.A. Johnson
nux distro I've used, including Debian. There are at least two versions; in Debian it's a perl script; in others (Mandrake, at least) it's a compiled executable. -- Chris F.A. Johnson <http://cfaj.freeshell.org> ===

Re: [OT] splitting files based on keyword

2005-06-21 Thread Chris F.A. Johnson
I am > wondering if there is any tool out there which does the above job. > > I can do it with c or fortran but that does not appear to be elegant. > > I looked at split, csplit. But they dont seem to do this. Googling did > not help much. Any other ideas? awk '/^d

Re: How do i find dynamic IP assigned?

2005-06-22 Thread Chris F.A. Johnson
's no need for grep, tail or sed: temp=$(ifconfig ppp0) ## Replace ppp0 with your active interface. temp=${temp#*addr:} ip=${temp%% *} -- Chris F.A. Johnson <http://cfaj.freeshell.org> == Shell

Re: small if statement in shell script

2005-06-22 Thread Chris F.A. Johnson
nd it won't continue on. > Is it possible to pound out the tar command and still leave the if > statement intact? even though there is no command to do. if [ "$day" = "Thu" ]; then : tar -cpf /var/backups/homethu.tar /h

Re: a2ps printing .ps files?

2005-06-27 Thread Chris F.A. Johnson
s not work right. Do you have the right paper size set? If you use A4 and it is set for letter size (vice versa), you'll see something like that. -- Chris F.A. Johnson <http://cfaj.freeshell.org>

Re: xmms skips all files

2005-06-29 Thread Chris F.A. Johnson
command adds more control that the basic xmms. -- Chris F.A. Johnson <http://cfaj.freeshell.org> == Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress <http://www.torf

Re: [TLUG]: tell ipod a recording is an 'audiobook'?

2007-07-06 Thread Chris F.A. Johnson
). Why are you using something that you don't have control over? does anyone know how to do this? if it can be done from amarok that's great, otherwise i can use whatever music player is required. -- Chris F.A. Johnson <http://cfaj.freeshell.org>

Re: OT (and Flamebait): Top-Posting

2005-07-10 Thread Chris F.A. Johnson
a > 10-fold decrease is (1/10) * 10 = 1 widget > > that make any sense?! No, it doesn't make any sense. The price has decreased to one two-thousandth of what it was (I didn't check the arithmetic; I'm only talking about the language). -- Chris F.A. Joh

Re: Browsers get stuck on some websites.

2005-07-12 Thread Chris F.A. Johnson
t;> /KS >> >> > More examples: > http://www.theglobeandmail.com > http://www.thestar.com > http://www.canada.com > --> these three hang in mozilla indicating that it is trying to load > something from img.mediaplex.com I have no problem with these sites, using F

Re: bash startup scripts - what is an "interactive login" ??

2005-07-12 Thread Chris F.A. Johnson
ich sources /etc/profile and ~/.bash_profile. If the shell is interactive, but not a login shell (e.g., xterm without -ls), it sources ~/.bashrc. -- Chris F.A. Johnson <http://cfaj.freeshell.org> ===

Re: How to get my computers IP address

2005-06-30 Thread Chris F.A. Johnson
ter's IP now? ip=$(lynx -dump http://cfaj.freeshell.org/ipaddr.cgi) -- Chris F.A. Johnson <http://cfaj.freeshell.org> == Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress &

Re: Install Perl modules the Debian way

2005-07-04 Thread Chris F.A. Johnson
tty 38400 tty3 4:23:respawn:/sbin/getty 38400 tty4 5:23:respawn:/sbin/getty 38400 tty5 6:23:respawn:/sbin/getty 38400 tty6 -- Chris F.A. Johnson <http://cfaj.freeshell.org> == Shell Scripting Rec

Re: bash - executing function in "find" command

2005-07-06 Thread Chris F.A. Johnson
o : whatever word=${line%% *} done : variables set within the loop are still available here, e.g.: printf "%s\n" "$word" } : but not here -- Chris F.A. Johnson <http://cfaj.freeshell.org> ===

Re: $PATH problem

2005-07-08 Thread Chris F.A. Johnson
~/bin in my path. Any help is appreciated. I am > running sarge with yesting and unstable in sources.list for > upgrading. Unless it is a login shell, ~/.bash_profile is not sourced. Put the PATH statements in ~/.bashrc, or call bash with the -l option

Re: Creating a task launcher.....

2005-07-08 Thread Chris F.A. Johnson
ay for years. > I've not gotten down to do it yet, but I set up a challenge > for myself: spend one month in front of my computer without > touching the command line, mutt, or vim. I want to sell > Linux to my friends, and I can