- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to start job after ftp
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
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
тАО04-27-2005 04:04 AM
тАО04-27-2005 04:04 AM
How to start job after ftp
I tried exec - it says invalid command.
I tried quote - it says command not uderstood.
Any suggestions?..
Thanks
Singaram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:17 AM
тАО04-27-2005 04:17 AM
Re: How to start job after ftp
Make a script that transfers the file (ftp/rcp/scp) and then executes another jobs.
If you want to automate ftp, read here how to do it with .netrc (not very secure):
http://www.mavetju.org/unix/netrc.php
I suggest to use sftp/scp if you have ssh installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:18 AM
тАО04-27-2005 04:18 AM
Re: How to start job after ftp
If it's a scheduled job, the remote server could have a cron job setup to check for the file, execute it, then remove or rename it.
if it's an on the fly job,then see if you have rcp/remsh capabilities (with security being the big thing, possibly these aren't turned on). You could rcp the file to the remote server and then run remsh to execute it.
l8ter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:21 AM
тАО04-27-2005 04:21 AM
Re: How to start job after ftp
Post the command that you are using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:30 AM
тАО04-27-2005 04:30 AM
Re: How to start job after ftp
Then i want to kick off a job on the remote server which processes the file i just ftpied..
singaram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:39 AM
тАО04-27-2005 04:39 AM
Re: How to start job after ftp
Or, do it from another direction, pull the file on the remote server and then execute a job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:41 AM
тАО04-27-2005 04:41 AM
Re: How to start job after ftp
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 04:54 AM
тАО04-27-2005 04:54 AM
Re: How to start job after ftp
script does FTP
when FTP completes, script sends email to a dedicated user on the other machine.
ON the other machine is a script running which checks for new email. When it gets new email, it removes the email and kicks off a script to process the FTP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 06:29 AM
тАО04-27-2005 06:29 AM
Re: How to start job after ftp
or - in you ftp script - remsh to remote server and execute the job you want (or ssh)....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 06:36 AM
тАО04-27-2005 06:36 AM
Re: How to start job after ftp
There are a number of ways and syntax to use for what you are asking.
The syntax and ability to do this depends on the OS of the machine you ftp to.
Since you have not provided the OS of the remote machine, we cannot offer "good" advice.
Please be advised, as Pete mentioned, regardless of the remote OS, this type of process is a security risk.
We commonly perform tasks, such as what you ask, between a VM/VSE mainframe and unix/nt, unix to nt, nt to unix. In our environment our processes are only on the internal network, yet this is still a risk.
Please advise of the to from OS you are referring to.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 06:54 AM
тАО04-27-2005 06:54 AM
Re: How to start job after ftp
For 1 file the sending server and receiving servers are HP9000.
For another file the sending server is AS/400
and receiving server is HP9000.
Oldendays for HP3000 as receiving server we use site stream command. I am trying to find a equalent command of that.
I dont want to use remsh.
IF no other alternative only i should do that.
May be security issue. But this is all with our own internal servers only.
Thanks
Singaram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 08:00 AM
тАО04-27-2005 08:00 AM
Re: How to start job after ftp
For UNIX to UNIX, and AS400 to unix:
1. Your script to execute should be in the
/etc/ftpd/ftp-exec directory
2. Or to execute from the directory the script resides, use a symbolic link with the file name in the /etc/ftpd-exec directory.
i.e. dummy9 -> /home/dlamar/dummy9
Sample code for your ftp job (not using .netrc)
ftp -n -v << endl >> /home/dlamar/work/ftp.log
open server_name
user some_user some_password
syst
put /some_directory/some_file.dat
site exec dummy9
endl
exit 0
Please be advised, there are a number of ways to perform what you are asking. I am simply providing an ftp based solution that you have requested.
THIS, AS IS ANY ALLOWABLE FTP EXECUTION, IS A
SECURITY RISK.
For UNIX to UNIX you should investigate the remsh option.
Also investigate the use of a .netrc file.
From the AS400, if you are running a BSI or CSI ftp product, you will find RECEXC available, in which case no entry in the /etc/ftpd/ftp-exec directory is necessary.
Best of luck and "be careful out there".
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 03:22 AM
тАО04-28-2005 03:22 AM
Re: How to start job after ftp
But both dont work for me.
I dont see /etc/ftpd direcotry and site exec command not understood.
Also RECEXE command is not available in AS/400.
So the only way is remsh ??..
Thanks again
Singaram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 05:03 AM
тАО04-28-2005 05:03 AM
Re: How to start job after ftp
And you have no /etc/ftpd/ftp-exec directory?
You may have to make the ftp-exec directory.
Hang in there, we will get it.
What ftp tool are you using on the AS400?
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 09:40 PM
тАО04-28-2005 09:40 PM
Re: How to start job after ftp
Then ftp your data file, and start the script with 'telnet targethost 12345'. In /var/adm/inetd.sec you could secure that only specific hosts are allowed to do the telnet on port 12345.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 09:53 PM
тАО04-28-2005 09:53 PM
Re: How to start job after ftp
server1 will send a file to server2. There is a script running on cron to check the file is created on server2 or not. If it is created execute it. That is all.
It will work without any problem or security hole.