FTP Error (HP Unix 11)

Posted on 2006-05-07
Last Modified: 2013-12-06
Hi Experts,

Following script is giving error "553 Could not determine cwdir: No such file or directory." :


echo "cd testdlvry"
echo "mput /folder1/hold/TT*"

} | ftp -vi

while following is running perfectly:


echo "cd testdlvry"
echo "put /folder1/hold/TT1 /folder2/tmp/TT1"

}|ftp -vi

Any hint for solution?

Question by:myrizvi
    LVL 61

    Expert Comment

    Do ftp> lcd /folder1/hold
    and from there do an mput.

    Author Comment

    Hi gheist,

    This lcd command is not working on HP UX.

    I want to have script to "put" multiple files to remote server in one execution. Right now my script is doing it in a loop and using only "put" command to send files one by one (as mentioned above in second example). I want to use the unix ftp tool not any other 3rd party tool.
    LVL 61

    Accepted Solution

    Your firs script puts files
    into remote "/folder1/hold/TT*"

    Assuming directories are created.

    instead of ftp> lcd ; then cd to needed directory and do the put after.


    Author Comment

    Thanks Ghiest, enjoy the earned points.

    The script now looks like this and working fine:


    echo "cd testdlvry"
    echo "lcd /folder1/hold"
    echo "mput TT*"

    } | ftp -vi

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now