execute shell commands with in sftp

Hi All,

Please let me know how do I execute some of the shell commands like cat, find ,grep within sftp.
Any help in this regard would be greatly appreciated.

Thanks,

where are you planning on running the commands? you can use the ! to escape to a local shell from within sFTP

Thank you for your response Revo!
I would like to execute the commands on the remote machine

Thanks,

Please let me know if you have a solution to this problem.

As far as I'm aware there is no way to do what you want in a remote shell via sftp, you can execute commands in a local shell by typing !<command> or by typing ! on its own to escape to a local shell.
check man sftp to see what commands are available or help from within sftp., the only other way is ot have a script whcih performs the commands you want on the remote host and send the information back to you, but you ar eproably better just ssh'ing to the box to do all that anyway

Thank you Revo!