On Wed, 2003-11-26 at 21:44, thomas ford wrote:
> Hello, Jason
>  
> It is still not sucessful, if put this command in script:cexec service
> maui restart , it is sucessful, but if I put the following lines into
> script and execute this script: 
> #!/bin/sh
> cexec mount /home
> cexec "uname -a"
> echo 
>  
> It hangs there, nothing return, on the other hand, if I run this
> command directly from shell, then it can complete.
>  
> Can you tell me more about this, why does that commands can't run in
> the script?

It may be because the script's environment cannot find cexec.  Try
adding the following line before the first cexec:
. /etc/profile.d/c3.sh

This will source the script that will make sure c3's path is in $PATH.

> Why do you put cexec "uname -a"  there?

No particular reason, just illustrating another possible way of invoking
a command with arguments.

Jason



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Oscar-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to