rightio! well i have learnt a lot now and have decided that i may aswell just use the command each time
but being me i want to get a script to work too - just so i can.
so i have taken some advice and have also looked at philhu's script for usb copy..
and i have come up with
#!/bin/bash
echo 'hello currie'
wow tricky you say!
i made this in notepad and saved it as a txt file. ANSI encoding
i then put it in a network drive, chmod to 755, renamed it to currie.sh to make it more obvious and tried to run it with ./currie.sh
and it replies with : bad interpereter : no such file or directory.
from there i read that depending how the drive is mounted it may not be able to see the bin/bash so i created a new folder /currie and moved it into there
so its /currie/currie.sh -to prove
/currie ls -l
Code:
root@127.0.0.1:/# ls -l /currie
-rwxr-xr-x 1 root root 35 Apr 18 16:18 currie.sh*
root@127.0.0.1:/#
so its all good but still
Code:
root@127.0.0.1:/# cd /currie
root@127.0.0.1:/currie# ./currie.sh
: bad interpreter: No such file or directory
any ideas?