- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: remsh and at question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 08:50 PM
01-07-2004 08:50 PM
Hi everyone,
I have a question about submitting an at-job via remsh.
As for this test setup, I tried to use remsh on the same host. The intention is to use remsh from another host in another WAN.
This is the setup.
host that runs the at-job : HostA
host that starts remsh : HostA (for this test)
user that starts remsh : UserA
HostA:/etc/hosts.equiv
permissions :
-rwxr--r-- 1 root sys contents :
HostA.domainname.com UserA
HostA UserA
HostA:/home/UserA/.rhosts
permissions :
-rwxr--r-- 1 scope users contents :
HostA UserA
JobA
date >> /home/UserA/JobA.log
echo test >> /home/UserA/JobA.log
echo >> /home/UserA/JobA.log
JobA.job
/usr/bin/at -f /home/UserA/JobA now +1 minute > /dev/null 2>&1
Running on HostA as UserA
remsh hostA -l UserA JobA
works fine .
Running on HostA as UserA
JobA.job
works fine too. The job is correctly scheduled an executed.
However,
Running on HostA as UserA
remsh hostA -l UserA JobA.job
doesn't work. There is no job scheduled.
Can anyone tell me why the remsh doens't work in case of the job with the at command ?
Thanks in advance,
Franky Leeuwerck
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:02 PM
01-07-2004 09:02 PM
Re: remsh and at question
You could try to redirect the stderr and stdout in jobA.job to a file, to see if any error is displayed. And when calling jobA.job in remsh, make sure you specify the full path.
I tried it and it seems to work for me..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:06 PM
01-07-2004 09:06 PM
Re: remsh and at question
I fully agree with Elmar. It also worked for me ... after I added my login to /usr/lib/cron/at.allow :^)
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:07 PM
01-07-2004 09:07 PM
Re: remsh and at question
Why not try this:
remsh HostA -l UserA /usr/bin/at -f /home/UserA/JobA now +1 minute
This should also work.
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:23 PM
01-07-2004 09:23 PM
Re: remsh and at question
Thanks for the quick replies.
So far, it doesn't work for this host in China.
I tried the same setup before on a western host and yes, it succeeds like you all experienced on your tests.
But on this, as said, Chinese host I get an unreadable message when running :
remsh hostA -l userA /usr/bin/at -f /home/userA/jobA.job now +1
minute
Message : òà ¥ðùçû¼
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:30 PM
01-07-2004 09:30 PM
Re: remsh and at question
Probably you miss a setting like LANG or something else.
jobA.job will become:
. $HOME/.profile
/usr/bin/at -f /home/UserA/JobA now +1 minute > /dev/null 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:47 PM
01-07-2004 09:47 PM
Re: remsh and at question
Thanks fo the aid.
Adding . $HOME/.profile did not solve the problem.
But adding 'export LANG=C' was the solution. Well found ! Thanks Jean-Louis.
Can you tell me also what this setting means ?
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:56 PM
01-07-2004 09:56 PM
Re: remsh and at question
It only means that you want to get default langage for system messages (english in fact). But did it solve the problem or did it only make the message easier to understand ?
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 10:03 PM
01-07-2004 10:03 PM
Re: remsh and at question
The problem was completely solved.
It works also now for running the remsh command from one of our western hosts upon the Chinese server.
Thanks,
Franky