× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Andrew,

I've never used (or heard of) CrushSFTP. I don't know what it does/doesn't support. The "normal" OpenSSH server supports more than just SFTP, it also supports standard SSH, as well as SCP.

With an OpenSSH server, I could run the following (from the client) to run a remote command:

ssh -l myuserid host.example.com "Remote Command Here"

That's the only way (AFAIK) that you can run a remote command via SSH is to do something like that.

Of course, I must admit, I don't understand why you need a remote command for this. You can delete files inside sftp... Why not do something like this?

sftp> cd D:/path
sftp> rm *.xml





On 12/21/2011 8:30 AM, Andrew.Smith@xxxxxxxxx wrote:
Hello,

Sorry to bother you all but I hope you can me with another SSH command
problem I have been set ?

I have been tasked with SFTP'ing all the /xml files from a directory on a
Windows XP PC running CrushSFTP
to the iSeries which I have done using the 'Get *.XML' in my SFTP script.
After retrieval they want to run a remote command
to delete all the .xml's and I was wondering how on earth to do it ?

Obviously on the pc I would just type in - : DEL D:/path/*.xml....but how
would I do this using SSH ?

Thankyou for your time and help.

Regards
Andy

Martin Dawes Systems
t. 01925-55-5316
e Andrew_Smith@xxxxxxxxx
w. www.martindawessystems.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.