- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script for running FTP in the background
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
тАО05-28-2003 11:09 AM
тАО05-28-2003 11:09 AM
Script for running FTP in the background
I want to run FTP in the background from one unix box to other unix box.
Does any one have any kind of scricpt for the above purpose?
Many many thanks in advance.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 11:13 AM
тАО05-28-2003 11:13 AM
Re: Script for running FTP in the background
#!/bin/sh
ftp -i -n -v <<-ftpend
open maquina_remota
user Nome_do_Usuario password
binary
cd /diretorio_remoto
lcd /diretorio_local
get arquivo_remoto
put arquivo_local
quit
ftpend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 11:15 AM
тАО05-28-2003 11:15 AM
Re: Script for running FTP in the background
ftp -i -n -v <<-ftpend
open remote machine
user user-name password
binary
cd /remote-directory
lcd /local-directory
get remote file
put put local file
quit
ftpend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 11:15 AM
тАО05-28-2003 11:15 AM
Re: Script for running FTP in the background
Here is a thread that give a couple of good examples, especially the Perl script:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xadc85a3e6e0bd6118ff40090279cd0f9,00.html
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 11:18 AM
тАО05-28-2003 11:18 AM
Re: Script for running FTP in the background
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 11:19 AM
тАО05-28-2003 11:19 AM
Re: Script for running FTP in the background
snarf
It runs ftp jobs, can be scripted easily.
Here is a link.
http://hpux.cs.utah.edu/hppd/hpux/Networking/FTP/snarf-7.0/
"Attaching snarfscript my little job for running snarf to snarf up those files from me.
snarf.
The sysadmins friend.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 11:58 AM
тАО05-28-2003 11:58 AM
Re: Script for running FTP in the background
We are already having scripts for FTP and those are running fine. But when we are trying to run that in background it is giving stty:I/O error.
That is why I was looking for a script that can be run in the background.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 12:07 PM
тАО05-28-2003 12:07 PM
Re: Script for running FTP in the background
I.E. Can you run the script from at or cron?
If so, then your okay to run
my_ftpscript.sh &
If it does not, then something is wrong. Misplaced/missing #!/bin/ksh perhaps, hard to say without your script to view.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 12:34 PM
тАО05-28-2003 12:34 PM
Re: Script for running FTP in the background
If you are running the job from "cron", then it won't run the .profile automatically. If you do a "su - username" in the script, that would run .profile.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2003 09:32 PM
тАО05-28-2003 09:32 PM
Re: Script for running FTP in the background
can you try to cron a script with commands similar to below? [as root??]
su - ftpuser1 -c "$SCRIPT_HOME/myftp.sh"
hope this helps!
regards
Yogeeraj