开发者

edit crontab of remote machine server bash remsh rsh

开发者 https://www.devze.com 2023-01-01 02:21 出处:网络
i am trying to edit crontab of remote machineis it possible ? i am running remsh REMOTEHOST -l REMOTEUSER crontab testcronfile

i am trying to edit crontab of remote machine is it possible ?

i am running

remsh REMOTEHOST -l REMOTEUSER crontab testcronfile

getting

crontab: can't open y开发者_JS百科our crontab file.

error

thanks for help

HP-UX


My guess is that the file testcronfile is local. When you call remsh, it tries to open a remote testcronfile, which does not exists, hence the error message :)

You have to upload your testcronfile first.

Am I right ?

my2cents


Have you tried getting a remote interactive shell first, then executing the crontab command? If that also fails then it points the finger at the remote machine rather than how remsh connects. If it works then check the enviroments in both cases and look for differences (certain scripts only run on interactive login, for instance).

Good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号