- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SCP is not working with at job
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
02-20-2011 04:30 AM
02-20-2011 04:30 AM
SCP is not working with at job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2011 04:31 AM
02-20-2011 04:31 AM
Re: SCP is not working with at job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2011 04:41 AM
02-20-2011 04:41 AM
Re: SCP is not working with at job
I am taking a wild guess here (not that much information to work with) and assume that the problem is that passwordless scp/ssh is not correctly configured on your systems...
If this is the case (you are prompted to enter a password when issuing the scp command on its own) follow the steps in the attached document to setup passwordless ssh on your systems.
If that does not help let us know some more details about what exactly is not working (e.g. which errors do you get and such).
sangilak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2011 04:51 AM
02-20-2011 04:51 AM
Re: SCP is not working with at job
For e.g we are running SCP command from server BBB as below:
--------------------------------------
scp -p AAA:/xxx/*_1_*.arch /yyy/
--------------------------------------
This is working fine, files are getting copied from server AAA to server BBB.
But when we are running same using "at" command as below:
We have created 1.sh file with SCP command.
at -f /zzzz/1.sh 8:30
It is not doing anything, No error & no files are getting copied to server BBB.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2011 05:14 AM
02-20-2011 05:14 AM
Re: SCP is not working with at job
run the at job and log the results somewhere:
at now
scp [[snip]] > /tmp/scp_log 2>&1
^D
the log will tell you why the scp command is failing. There are any number of potential reasons. You really haven't given us enough information to tell you which of those reasons is affecting you.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2011 05:42 AM
02-20-2011 05:42 AM
Re: SCP is not working with at job
A trivial, Have you autorized at user that are executing the "at" command into /var/adm/cron/at.allow file?
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2011 06:11 AM
02-20-2011 06:11 AM
Re: SCP is not working with at job
Just now We checked single SCP command is working with "at" but when we use with one more command i.e. "ssh". SCP command is not getting executed.
But 1st ssh command is executing.
ssh serverA mv /xyz/*_1_*.arch /xxx/
scp -p serverA:/xxx/*_1_*.arch /yyy/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2011 10:03 PM
02-20-2011 10:03 PM
Re: SCP is not working with at job
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 10:46 AM
02-21-2011 10:46 AM
Re: SCP is not working with at job
Not without some specific error messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 10:57 AM
02-21-2011 10:57 AM
Re: SCP is not working with at job
/usr/local/bin/scp instead of just scp only.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!