Re: Short script which worked in Lenny but does not in Squeeze - SOLVED

2013-07-24 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks to the three of you who replied to my post. I do not consider myself an expert on scripts, restricting myself to simple ones; and so I was unaware of the change of default shell from bash to dash beginning with Squeeze. Regards, Ken Heard

Re: Short script which worked in Lenny but does not in Squeeze.

2013-07-24 Thread Sven Joachim
On 2013-07-24 19:44 +0200, Ken Heard wrote: > My amateur's attempt at scripting has come to grief. The script in > question reads as follows: > > #!/bin/sh > # Shell script to create a tgz file for the contents of the > # /usr/local/bin directory. > # Start by creating a variable with the current

Re: Short script which worked in Lenny but does not in Squeeze.

2013-07-24 Thread Guido Martínez
Hi, > #!/bin/sh > ... > ULB="$HOSTNAME"usrlocalbin.tgz > In my Wheezy setup, sh does not define a shell variable HOSTNAME, but bash does. You can either change the shell to /bin/bash or use $(hostname) (that is, running the hostname command). This is probably caused by a change in sh. Hope it h

Re: Short script which worked in Lenny but does not in Squeeze.

2013-07-24 Thread David Guntner
Ken Heard grabbed a keyboard and wrote: > My amateur's attempt at scripting has come to grief. The script in > question reads as follows: > > #!/bin/sh > # Shell script to create a tgz file for the contents of the > # /usr/local/bin directory. > # Start by creating a variable with the current dir

Short script which worked in Lenny but does not in Squeeze.

2013-07-24 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My amateur's attempt at scripting has come to grief. The script in question reads as follows: #!/bin/sh # Shell script to create a tgz file for the contents of the # /usr/local/bin directory. # Start by creating a variable with the current directory.