1847546 Members
3676 Online
110265 Solutions
New Discussion

Re: Cron

 
SOLVED
Go to solution

Cron

Hi All,

On Server_A --- (/home/test)Test user is exist.


On server_B --- (server_A:/home/test)nfs has mounted.

can we list and execute crontab file (present on server_A) on server_B for test user .
5 REPLIES 5
Johnson Punniyalingam
Honored Contributor
Solution

Re: Cron

<>

user should exist in Server_B

login :- user_name

crontab -e

than after adding entry to crontab for the user under Server_B

example :-

* * * * * /nfs_mount_point

crontab -l

also make sure test_user is allowed in cron.allow file server_B

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Aneesh Mohan
Honored Contributor

Re: Cron

Hi Prathiba,

>>can we list and execute crontab file (present on server_A) on server_B for test user .
The default location of the crontabs for the system users are in /var/spool/cron/crontabs and not in home directory of the user .

If you have test user in both the servers and .rhosts is configured then you may able to do crontab -l and execute the cronjobs.


Aneesh
Aneesh Mohan
Honored Contributor

Re: Cron

I missed one point in the above reply .

If you have test user in both the servers and .rhosts is configured then you may able to do crontab -l and execute the cronjobs by using remsh.
Dennis Handly
Acclaimed Contributor

Re: Cron

>can we list and execute crontab file (present on server_A) on server_B for test user.

No, crontabs are stored locally in /var/spool/cron/crontabs/. You can have them invoke a shared script.
Jeeshan
Honored Contributor

Re: Cron

you can use remsh to execute that server and get the ouputs in a central server using SSH without password.
a warrior never quits