What is the script in question supposed to do? If it is intended to install other software then it may need another language or application that is not present on your system. The only way I can think of to figure that out is to take the script apart and work through it line by line (painful, yes, but possibly one of the few ways to trully get to the bottom of this little conundrum).
Changing permissions
chmod a+x./whatever
Otherwise, check that your path to bash matches the one in the file (which bash).
Make sure you have the filename correct. Unix filenames are case sensitive, meaning that
somefile.sh
is not Somefile.sh
or someFile.Sh
.
Rate me up.
OK, running ''sh File.sh'' works, but now it gives weird errors about syntaxt. That I understand, at least.
Perhaps you shouldn''t be running Unix?
Hey, somebody had to say it. Running Unix is work. You need to read and understand. This ain''t no consumer OS; it was designed by and for programmers, scientists and other technical types. Apply yourself, read the damn manpages and learn to solve problems. Oh, and get a dead-tree Unix reference book (O''Reilly''s titles are good) to keep beside your computer at all times. Because you need it.
The number of recursive topics that need to be explained for you to completely grasp the problems (shells, files, permissions, paths, environment...) is to extensive. So find an FAQ somewhere. Get cracking!
Hey, somebody had to say it. Running Unix is work. You need to read and understand. This ain''t no consumer OS; it was designed by and for programmers, scientists and other technical types. Apply yourself, read the damn manpages and learn to solve problems. Oh, and get a dead-tree Unix reference book (O''Reilly''s titles are good) to keep beside your computer at all times. Because you need it.
The number of recursive topics that need to be explained for you to completely grasp the problems (shells, files, permissions, paths, environment...) is to extensive. So find an FAQ somewhere. Get cracking!
You should really read the friendly manual, but tell you what: post the shell scriopt contents here and the error that you are getting we (I, at least) will see what the problem is.
Rate me up.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement