Thread
:
Can't cd in bash script
View Single Post
FRuMMaGe
2011-01-04 , 02:35
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#
1
I've come across a ridiculously infuriating problem.
I'm trying to load a simple bash script that cd's to a directory and executes a function, but whenever I sh the script, it ALWAYS tells me "can't cd /whatever/directory" (obviously this is not the actual directory)
For debugging purposes, I have set the directory name to things that DEFINITELY exist, such as /home/user/MyDocs/
I have run the command by itself in xterm with no problems, but it gets picky when I run it from a script.
I have chmod +x it and everything is as it should be. What the hell is wrong?
__________________
OMNOM
: Pacman-like game now in extras-devel
fAircrack (Aircrack GUI)
: Point-and-click pwnage for your N900
Now with John the Ripper integration
Quote & Reply
|
FRuMMaGe
View Public Profile
Send a private message to FRuMMaGe
Find all posts by FRuMMaGe