D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Problem with Bash script on Ubuntu

 

On Thu, Mar 20, 2008 at 08:47:13AM +0000, Henry Bremridge wrote:
> $ ./backup_pgm.sh
> -bash: ./backup_pgm.sh: bin/sh: bad interpreter: No such file or directory
> 

bin/sh should be /bin/sh

> Background
> 
> -   back up script (backup_pgm.sh)
> 
>     #!bin/sh

^on this line.

(and it's not a bash script, it's a shell script. By default /bin/sh pints 
to _dash_ not _bash_ on Ubuntu).

Cheers,
Al.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html