problem with bash script
Paul Smith
paul at mad-scientist.net
Sat Mar 8 19:11:24 UTC 2014
On Sat, 2014-03-08 at 16:56 +0000, Paolo De Michele wrote:
> I have a problem with my bash script.
> this script will do a backup in a particular directory - look below:
>
> #
This script, as you say, is a bash script. It's not a POSIX shell
script: it uses many bash-specific features.
Hence, you must specify to the system that you want to use bash
specifically, and not just a POSIX shell, to run the script.
Make the first line:
#!/bin/bash
(no whitespace, newlines, etc. before it. The very first two characters
in the file must be the #!)
More information about the ubuntu-users
mailing list