1826424 Members
3442 Online
109692 Solutions
New Discussion

FTP Job HP-UX

 
Yazan Yacoub
Regular Advisor

FTP Job HP-UX

Hello,

I appreciate if someone can help me on this:

I need to create FTP job that move files from specific path on HP-UX box to another path on HP-UX system, I need to move only files with the following format only:
XDS****DMF***
And
XDSDMF********

Above job will run on daily bases.

Thanks,
Yazan
3 REPLIES 3
Ivan Krastev
Honored Contributor

Re: FTP Job HP-UX

Perhaps you mean cron job, not ftp.

If files are text files , containing XDSDMF** ... just write a simple script for finding such files and move it to specific location.

regards,
ivan
Jeeshan
Honored Contributor

Re: FTP Job HP-UX

Hi

edit asper your requirement and add this as a script in crontab

#!/bin/sh
ftp -n << !EOF
user unix-username password
cd /
prompt
bin

mput XDS****DMF***
mput XDSDMF********

quit
!EOF
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: FTP Job HP-UX

>with the following format only: XDS****DMF***

If this is a shell Pattern Matching Notation, you'll need:
XDS????DMF???
(Otherwise only one "*" is needed.)