Web Hosting Talk







View Full Version : Shell Script not working


hypernatic.net
03-11-2002, 12:50 PM
Hi

I tried to make this auto install shell script, however, it works like crap...

#!/bin/bash
mkdir /tmp/DIRECTORY
...blablabla...


it fails right there at the second line...
It doesn't create /tmp/DIRECTORY but it creates /tmp/DIRECTORY?

Anyone know what the hell is going on? :(

allera
03-11-2002, 01:28 PM
Originally posted by hypernatic.net
It doesn't create /tmp/DIRECTORY but it creates /tmp/DIRECTORY?
Run that by us again? Are the permissions in /tmp (?) set correctly?

The Prohacker
03-11-2002, 01:30 PM
The code you posted has a space after the direcotory name.. Remove that and then try again....

hypernatic.net
03-11-2002, 06:05 PM
In the script it has no space - that only shows here with HTML...

So note the ? at the end...
/tmp/DIRECTORY?

Tim Greer
03-11-2002, 06:17 PM
Post all of it (including the ..blahblah.. stuff).

Did you edit this file online, or did you upload it? If you uploaded it, did you upload it in ascii to make sure there's no hidden characters/line feeds (although that's unlikely)?