-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
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
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
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
-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.
5 matches
Mail list logo