Thread
:
Can't cd in bash script
View Single Post
fgevaerts
2011-01-04 , 16:02
Posts: 6 | Thanked: 7 times | Joined on Jan 2010
#
9
Originally Posted by
paai
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
.
Quote & Reply
|
The Following 2 Users Say Thank You to fgevaerts For This Useful Post:
FRuMMaGe
,
littlebadger
fgevaerts
View Public Profile
Send a private message to fgevaerts
Find all posts by fgevaerts