If your trying to run the script I sent you, you MUST be root.good addtional info on the shell stuff, thanks.
up2date can only be run by root.
/bin/sh should be fine
the permissions should be :
-rwxr--r-- root ...... script
or
-rwx------ root ...... script
Scripts not only nead to be executable by the user running them, but they also nead to be readable.
If the executable is not in one of the directories listed by :
echo $PATH
you must run the script prepended by a path, like this :
/path/to/script
or if it is in your current directory
./script
You do NOT need '.sh' or '.exe', this is done automagicly using mime-magic.
To check what kind of file a file is, you can run :
file samplefile
The file command will tell you what kind of file it thinks samplefile is.
example :
[kermit@xxxxxxxx]$ file bin/rhn_update bin/rhn_update: Bourne shell script text executable
The first line contains the shell the program wil run in.
If you wnat it to run with bash, put :
#!/path/to/bash
Where /path/to/ is the path to your bash command, which can be found by typing :
which bash
I hope this clears up your confusion.
yes i had the permissions right, and i was root when attempting to execute it. it was that carriage return thing causing the issue.
--
regards,
shane
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list