Problems with Scheduler not being able to run an import

Long story short:

  • I have a script that downloads a list of scripts to install from my server (“installscripts.rsc”) and then runs an /import installscripts.rsc. Works Every Time
  • I have a scheduler that kicks that script off, if I tell it to. Somewhat works (ill explain)

What does not work is when the “download and import” script runs, it downloads the rsc file correctly, but when it runs the “/import installscript.rsc”, it creates the scripts, but they are red, and when you open the script there is nothing in there. Now if I manually delete the red scripts it created and manually run “/import installscripts.rsc” from the CLI, everything works fine.

Why does this not work? Anyone know?

Possibly permissions on the scheduler event? Generally that is what I forget to set.

It ended up being a strange issue, but basically I was using scripting inside of the scheduler to figure something out, and then run a script. I just ended up putting the scripting into another script, and called that initialization script from the scheduler, which in turn, called another script.

Thanks for the feedback though.