Hi All
I am getting this error when i try to run script from root using other user profile. Command I am running is
"su - user -c command"
Error envounterd
"then: then/endif not found"
Can any body please help me on this ...
Hi All
I am getting this error when i try to run script from root using other user profile. Command I am running is
"su - user -c command"
Error envounterd
"then: then/endif not found"
Can any body please help me on this ...
Try this...
su - user
<enter passwd>
then fire the commands....
-- Jayan Jayaseelan
yes it is working like that...but i want to run it in single sommand as i want to crontab it.
It is working on one of my xun machine but not working in the other...
The syntax from root cron would usually be:
su user -c "command"
Obviously this does not execute the user's profile - which is often an advantage.
Can you post the contents of the script and state which shell you are using? "endif" is from csh.
the script is not running in c shell for bash shell its ok.
how can we check for c shell dependencies