Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP CWD File

Status
Not open for further replies.

rob51383

Programmer
Jun 23, 2004
134
US
Hi, I could not find a proper forum for this, so I picked the closest one that I thought someone would have the answer. Here is my question.

I am using WS_FTP LE to upload files to my remote web server. I have a directory that is about 5 folders deep from the "WWW" folder and I want to create a shortcut there that will "CWD" to another folder that is about 5 folders down from "WWW" in the opposite direction.

It is annoying having to navigate every time!
 
You can issue a change password command directly to any folder position using a single command... you don't need to drill the hierarchy one folder level at a time...

Am I missing something?

D.E.R. Management - IT Project Management Consulting
 
Yes, you can open a window to type in the directory but I need to change back and forth between directories sometimes 3-5 times a minute.

I am developing, uploading a script to one directory, then testing if the script works by executing it, then checking if the file is properly created by the script in the other directory.

The path is about 30 characters to type '/home/username/public_html/websitename/folder1/folder2/folder3/folder4' and I have the CWD to a third leavle off of '/websitename'.

I have seen files similar to the one I am trying to make and they are usually located in the top levle, not html accessable directory '/'.

For instance there is a file called 'www' and it is simply a link to 'public_html'. The files in WS_FTP looks like 1/2 folder icon and 1/2 file icon.
 
Just put a symbolic link in each directory that points to the other directory. Then you can cd into a 'local directory' that will actually put you where you wanted to go.

ln -s actual_directory shortcut_name

You will have to log in to a shell on the Linux host to set it up, but it should work just fine.


pansophic
 
And here comes the conversational hammer.... :)

OR JUST USE "ssh" and "sftp" which are vastly more scriptable.

<end of line>

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top