- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ftp script unable to pull the file with cronjob
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
Discussions
Discussions
Forums
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
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
тАО06-02-2009 12:24 PM
тАО06-02-2009 12:24 PM
Ftp script unable to pull the file with cronjob
Retrieving:
System: Ftpsite.com
Directory: /outbound
Mode: binary
File(s): xxx.csv.pgp
autoftp.pl: successful completion of retrieving files
gpg: WARNING: unsafe ownership on homedir "/usr/local/etc/gpg"
gpg: cannot open `/dev/tty': No such device or address
/usr/local/tools/bin/mv: cannot stat `xxx.csv': No such file or directory
**********************************************
When I Run Maually with same userID:
Retrieving:
System: FTPSite Address
Directory: /outbound
Mode: binary
File(s): XXX.csv.pgp
autoftp.pl: successful completion of retrieving files
gpg: WARNING: unsafe ownership on homedir "/usr/local/etc/gpg"
gpg: public key is 3295242B
gpg: public key is F42E1C6C
gpg: using secondary key F42E1C6C instead of primary key AFBD9DF5
gpg: using secondary key F42E1C6C instead of primary key AFBD9DF5
gpg: CAST5 encrypted data
gpg: original file name='XXX.csv'
gpg: WARNING: message was not integrity protected `XXX.csv' -> file path/XXX.csv'
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:34 PM
тАО06-02-2009 12:34 PM
Re: Ftp script unable to pull the file with cronjob
You need to add the '--notty' switch to your gpg command line in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:34 PM
тАО06-02-2009 12:34 PM
Re: Ftp script unable to pull the file with cronjob
as well as the actual crontab entry?
the messages produced from the command line (if any)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:36 PM
тАО06-02-2009 12:36 PM
Re: Ftp script unable to pull the file with cronjob
What operating system and software are you using? The 'autoftp.pl' notation suggests a Perl script.
The message "gpg: cannot open `/dev/tty': No such device or address" is consistent with a crontask which is _not_ associated with a terminal when it runs.
Remember that a 'cron' task runs in a very minimal environemnt. Your PATH, for example, is limited to '/usr/bin:/usr/sbin:.'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:46 PM
тАО06-02-2009 12:46 PM
Re: Ftp script unable to pull the file with cronjob
Iam using HP-UX 11.11. I am new to scripting. This one some body else wrote. It was working fine before. suddenly we are getting error as unsafe owership. please help me out
Padmaja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:55 PM
тАО06-02-2009 12:55 PM
Re: Ftp script unable to pull the file with cronjob
> suddenly we are getting error as unsafe owership. please help me out
Google suggests that you try something like this:
http://lists.gnupg.org/pipermail/gnupg-users/2008-May/033596.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:58 PM
тАО06-02-2009 12:58 PM
Re: Ftp script unable to pull the file with cronjob
...and:
http://lists.gnupg.org/pipermail/gnupg-users/2003-October/020342.html
Similar results can be found using the Google search string "gpg warning unsafe ownership homedir" --- nice, huh?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 01:03 PM
тАО06-02-2009 01:03 PM
Re: Ftp script unable to pull the file with cronjob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 01:11 PM
тАО06-02-2009 01:11 PM
Re: Ftp script unable to pull the file with cronjob
> I changed the permissions now 700. Before it was 777
...and so what happens now?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 01:15 PM
тАО06-02-2009 01:15 PM