using the at module

2002-10-16
2004-08-04
  • Ing-Long Eric Kuo

    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.

    Any ideas?

     
    • Anonymous - 2004-08-04

      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
      do '../at/at-lib.pl';
      &at::create_atjob(parameters)
      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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks