I am having a problem running scripts using the at command on RHEL AS3. I need it to run in csh/tcsh, but it defaults to bash...unfortunately the Linux version installed does not have the luxury of the -c option to force C Shell to execute the at job, so I am at a bit of a loss.
I have a simple test script called b.ex:
set | grep -i shell
set text='SOME TEXT'
echo $text > test
that runs fine from the command line, and the file test is created with the expected text in:
1069-> more test
If run using "at -f b.ex now" the file test is created but empty, and I get the following output mailed to me:
If I create a script called b.at containing just the following single line:
and then run "at -f b.at now" then the b.ex scripts gets run and works fine.
Is there a workaround for this please, or is there a different version of the at command I can download and install...the trouble is, searching in google and on forums for "at" comes up with loads of matches.
Many thanks in advance.