I have tried to use the at module's create_atjob with no luck. I did &foreign_require("at", "at-lib.pl"); at the beginning of the function sub apply_iptables
and then tried to call
&foreign_call("at", "create_atjob", "root", "now + 3 days", "sleep 30", "/");
but I am not able to create the job. I tried doing it directly with open(), print(), and close() with no luck.
Yes...instead of different items separately, create an array with the values in them, and supply that as the third option for foreign_call.
Or if it's on the same box and there's a lib.pl file in the directory where at is
Note: if the at-lib.pl calls any other libs, you will need to use a 'do' statement as well.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.