Operating System - HP-UX
1833151 Members
3132 Online
110051 Solutions
New Discussion

at command with arguements

 
SOLVED
Go to solution
Belinda Dermody
Super Advisor

at command with arguements

Is there a way to pass arguements along with the at command. I have a job that runs every 4th friday of each month. At the end of the job now it creates a new entry with the at command.
ex: at -f $WDIR/pastepass.sh 6pm + 4 weeks

Well now I have a new requirement to either do a (F)ull or (P)artial so I want to pass a F or P. But all the ways that I have tried have errored out.
3 REPLIES 3
Dan Am
Frequent Advisor

Re: at command with arguements

try this:
create a script which calls your app with argument. let at(1) call that script
do what you can. don't if you can't.
RikTytgat
Honored Contributor
Solution

Re: at command with arguements

Hi,

Do:

eecho "your_command your_arguments" | at 18:18

Hope this helps,
Rik
Dan Hetzel
Honored Contributor

Re: at command with arguements

Hi James,

echo "$WDIR/pastepass.sh argument_list" | at 6pm + 4 weeks

example I've tried right now:
echo "ls -lR /home >/tmp/att$$" | at 1736


Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com