- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- help with script..ftp script
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
09-17-2006 10:18 PM
09-17-2006 10:18 PM
help with script..ftp script
basicly on machineA script1 to execute every 15 min.
script1 should check for files in machineB in /path/machB
if there are files on machine2 take them on machineA /path/machA and remove files in folder /path/machB on machine B.
any help is usefull..
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2006 10:23 PM
09-17-2006 10:23 PM
Re: help with script..ftp script
do a man rdist
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2006 10:26 PM
09-17-2006 10:26 PM
Re: help with script..ftp script
easiest way to do this (in my opinion) is to set up a cronjob on machineA and use NFS exprted disk /path/machA.
That way all you have to do is cp the files from /path/machA to /path/machB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2006 10:40 PM
09-17-2006 10:40 PM
Re: help with script..ftp script
to execute it basicly from machineA do mget files ftom filder on machineB and remove all files in that folder on machineB
can U please start with code..I would like to see how to start..
later I did script which parses those files..
regards..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2006 11:18 PM
09-17-2006 11:18 PM
Re: help with script..ftp script
ftp -i -n <
open Bmachine_IP_address
user BmachUSER BmachPASS
cd /Bmach/folder
prompt
mget 12*
#delete anes*
quit
EOF
But removing files on remote machine does not work...how can I remove them..delete does not seems to do a job for me..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2006 11:18 PM
09-17-2006 11:18 PM
Re: help with script..ftp script
ftp -i -n <
open Bmachine_IP_address
user BmachUSER BmachPASS
cd /Bmach/folder
prompt
mget 12*
#delete 12*
quit
EOF
But removing files on remote machine does not work...how can I remove them..delete does not seems to do a job for me..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 12:00 AM
09-18-2006 12:00 AM
Re: help with script..ftp script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 12:39 AM
09-18-2006 12:39 AM
Re: help with script..ftp script
Would it be possible for you to push files from machine B rather than pulling from Machine A. So instead of mget, use mput from Machine B and in your scriot after EOF generates a list of files using `ls -1` and delete them all
-PB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 01:08 AM
09-18-2006 01:08 AM
Re: help with script..ftp script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 01:26 AM
09-18-2006 01:26 AM
Re: help with script..ftp script
If U could help me out with that I would love...
also delete does not work even if I change premissions on file to 777..
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 01:32 AM
09-18-2006 01:32 AM
Re: help with script..ftp script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 03:07 AM
09-18-2006 03:07 AM
Re: help with script..ftp script
if the permissions are ok, you can delete files on the reomte host.
But looking at your ftp-commands, I see that you use a pattern to get multiple files - so you have to use 'mdel' to delete multiple files, not just 'del':
...
mget 12*
mdel anes*
...
mfG Peter
BTW: I would change to a ssh-connection, nevetheless, as many previous posters suggested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 07:33 PM
09-18-2006 07:33 PM
Re: help with script..ftp script
mdel 22*
or even it would not remove single file with delete sommand..
Also I set premissions on remote file to 777..
any help??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 09:40 PM
09-18-2006 09:40 PM
Re: help with script..ftp script
the permissons on the file(s) are (nearly) meaningless - you have to check for the permission of the directory containing them!
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 11:00 PM
09-18-2006 11:00 PM
Re: help with script..ftp script
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2006 09:09 AM
09-19-2006 09:09 AM
Re: help with script..ftp script
# all the following default to "yes" for everybody
delete yes guest,anonymous # delete permission?
overwrite yes guest,anonymous # overwrite permission?
Regards,
-dl