View Single Post
Posts: 6 | Thanked: 7 times | Joined on Jan 2010
#9
Originally Posted by paai View Post
it executes 'cd' all right..
It wouldn't say "can't cd to /whatever/directory" then.

FRuMMaGe: Can you run "od -c yourscript.sh", and check that there are indeed only \n characters for line ending, and no \r?

The "can't cd to /whatever/directory" error is printed if you do have this wrong, which is why I wouldn't rule out this possibility without seriously checking.

Last edited by fgevaerts; 2011-01-04 at 16:11.
 

The Following 2 Users Say Thank You to fgevaerts For This Useful Post: