Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel excel 2003 firefox hard drive hardware hijackthis internet keyboard laptop malware monitor network networking outlook problem processor ram recovery router safe mode slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
executing unix commands in ftp

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
cgjoker's Avatar
Senior Member with 205 posts.
 
Join Date: Aug 2003
27-Apr-2004, 11:12 AM #1
executing unix commands in ftp
Hi there.

I would like to execute unix commands in a Windows FTP script that I have.

In the FTP script, I connect and FTP some files.

Once that is complete, I would like to perform such commands as chmod, or export....

anyone have any ideas on how I can do this?

Thanks so much.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
27-Apr-2004, 04:08 PM #2
Are you trying to chmod/export on your local Windows box, or on the remote system?
If its the remote system, you should probably be using SSH instead of FTP.
cgjoker's Avatar
Senior Member with 205 posts.
 
Join Date: Aug 2003
27-Apr-2004, 04:55 PM #3
I know that FTP doesn't allow all unix commands, that it only allows file commands,... that being said, yes, im trying to execute unix commands such as chmod on the remote unix server. I guess SSH is the only option? I know that Hummingbird has Macro's I can also use, but I was hoping there was a trick to somehow fooling FTP into running these commands.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
27-Apr-2004, 06:54 PM #4
It really depends on the client.
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
27-Apr-2004, 07:53 PM #5
which commands are you specifically trying to run? Almost all Ftp servers will allow you to chmod files to anything you want as long as its a actual real possibility, you can ls, dir...etc
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
27-Apr-2004, 08:53 PM #6
For this type of scripting, unless you are running an old school client, you will have to rely on built in scripting functionality.
cgjoker's Avatar
Senior Member with 205 posts.
 
Join Date: Aug 2003
28-Apr-2004, 12:18 PM #7
commands inlcude chmod, export (as in variables such as LIBPATH), and also, im trying to execute an application utility that is part of a unix program.

the client iw W2K, the server is AIX.

i tried executing a unix script within the ftp but that doesn't work so could you perhaps elaborate on what your refering to by internal scripting please.

thanks.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
28-Apr-2004, 06:39 PM #8
Most clients (FTP client programs) have an internal scripting capability. This allows you to execute commands from a script. However, running a shell script (which is in essence what you want to do) over the network will take ssh.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 09:47 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.