...
Use Agent instances
Multiple Agents can be operated to run in different accounts from the same Agent installation
For details see JobScheduler Universal Agent - Running multiple instances
Use
sudo
in the JobScheduler jobTo access a file belonging to "other_user" use
sudo -u other_user script_for_other_user.sh
Make sure that
other_user
doesn't require a password forsudo
. This can be achieved by adjusting the configuration from thesudoers
file. This method has the advantage that it is extremely flexible - you can change the user more than once within a job. ifsudo
requires a password then you can useecho "<password>" | sudo -S -u other_user script_for_other_user.sh
- Use SSH jobs
- The
If it is not possible to use
sudo
or if all the files you are accessing have the same owner you can either use SSH or a JobScheduler Agent.xx
- Note that the
- use of SSH is not restricted to remote computers - you can use it to access local files.
- A JITL SSH job is provided with
- each JobScheduler installation. See the following articles: