SSH + screenshot installed, but how to delete files?

Welcome to our Community
Wanting to join the rest of our members? Feel free to sign up today.
Sign up

scrowner

New Member
Bronze
Jul 4, 2007
120
0
0
#1
Ok. I got SSH installed on my iPhone. I then ran the winscp and connected to my iPhone via the WiFi in my home. I placed screenshot application in the bin directory and change the properties of the app file. I rebooted, reconnect to the iPhone via winscp and brought up the terminal window in winscp and ran screenshot. YEP it created a foo_0.png in the tmp directory. SWEET!

However....how do I delete the foo_0.png file?

I chmod the file using winscp/properties but I can not delete the file.

Any help?
 

scrowner

New Member
Bronze
Jul 4, 2007
120
0
0
#2
Interesting, Manzana will delete a file for you by simply right clicking on the file. Nice. So, foo_0.png can now be deleted from the iPhone, sweet.

I am still curious as to why I can not delete a file using winscp.
 

ajisai

New Member
Jul 4, 2007
13
0
0
#5
shell commands

Check your /bin directory. You probably have only a few command files such as chmod, launchctl, etc.
If you want to execute more shell commands on iPhone, you need to install command s in the /bin directory.

For example, deleting file, the command is "rm"
WinSCP is simply running the rm command when you are trying to "delete."
But since you don't have the "rm" binary file in the iPhone, you get error messages.

So, you need "rm" file in the /bin directory.
You can get the command binary files "iPhone Binaries kit for iPhone"
from
http://iPhone.fiveforty.net/wiki/index.php/Webshell

Quite amazing package.