Operating System - HP-UX
1830133 Members
2894 Online
109999 Solutions
New Discussion

At job returns message warning: commands will be executed using /usr/bin/sh

 
Sherrie Kubis
Occasional Contributor

At job returns message warning: commands will be executed using /usr/bin/sh

I have a c shell script with the first line of #!/bin/csh. This script must run under the C shell and I would like to run it as an 'at' command.

It looks like this warning is just informational, but it also looks to me like this job is running under the /usr/bin/sh even though I am specifying /bin/csh.

For example, a small test program:

#!/usr/bin/csh -vx

set d = `date`

echo $d
echo $d[2]-$d[3]-$d[4].log > /tmp/$d[2]


doesn't create a file /tmp/Sep as it does when I run this test case interactively.

Something is not right, but what?
1 REPLY 1
Steven E. Protter
Exalted Contributor

Re: At job returns message warning: commands will be executed using /usr/bin/sh

This is a standard message.

It is informing you that cron and at commands will be executed with the posix shell.

/usr/bin/sh

If the script it calls has its own shell statement it will run in that shell. But the initial command and environment runs with the shell displayed in the message.

It is merely something that you need to know.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com