Re: up2date demo mode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guy Fraser wrote:

If your trying to run the script I sent you, you MUST be root.

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.


is there away to confirm that the updates completed successfully? a log file, perhaps?
--


regards,

shane



--
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux