Re: Can I change group and permissions on the messages file?



On Sun, 24 Sep 2006 22:02:56 -0500, Bit Twister wrote:
On Mon, 25 Sep 2006 02:37:19 +0000 (UTC), Ohmster wrote:
Oh you are right Chris, the path is not needed.

[root@ohmster ~]# pwd
/root
[root@ohmster ~]# stat --version

Note: Commands which work at command line may not work in cron jobs.
You my find out the PATH on cron is not the same as root's

Frap, Reading my last two posts, shows my spelling sucks worse than usual.

As a followup: You can check with

echo $PATH as root, and look at

$ grep PATH= /etc/crontab
PATH=/sbin:/bin:/usr/sbin:/usr/bin

Then again maybe they are the same. :)
.



Relevant Pages

  • Re: Multiple commands in shell
    ... seem to grasp how I keep the "state" from the previous shell command. ... Here's another way to do it using a here document by having multiple commands on separate lines - much the same way as in a shell script: ... $ ruby /tmp/x.rb ...
    (comp.lang.ruby)
  • Re: Security of the /Users directory
    ... Barry Margolin wrote: ... commands like "pwd" from working, as it needs to be able to list each of ... the ancestor directories. ...
    (comp.sys.mac.system)
  • shell procedure for changing to a certain directory
    ... On the normal console, I want to change to a certain ... directory and perform there some commands. ... target directory is e.g.: ... the directory name correctly onto the screen using pwd. ...
    (comp.os.linux.misc)
  • Re: How does "cd" command work?
    ... >>I have prgrammed my own simple shell which loops forever and accepts ... >>commands and executes them. ... I noted that PWD had changed correctly. ... >>original directory. ...
    (comp.unix.programmer)
  • Re: Need help creating a database
    ... > Try the following commands at the Unix level ... > 3) pwd ... Prev by Date: ...
    (comp.databases.oracle.server)