OK... so I am a newb programmer, I mean I just started yesterday (although I did some Basic before switching) and this is what I need to do.
1) Log on to a network computer using SSH
2) Take a screenshot of that computer every 10 seconds and copy it to my computer
and then after I have taken enough screenshots (which will vary depending on user activity)
3) Delete the file myusername@myIP in the network computer's Home folder
4) Delete the screenshot file
5) Empty the trash
I would like all these things to be done without the user knowing their happening - ie no dialog boxes, no alert sounds etc
I know that most programmers don't like to help someone who hasn't done their homework. So... I am able to log on to the network computer via Terminal using ssh targetuser@targetIP and I am also able to take the screenshot and copy it to my computer (but not every 10 seconds) using screencapture -x ~/screen.jpg followed by scp ~/screen.jpg myusername@myIP: However, I have to do these manually every 10 seconds which is really not very practical or possible. I have no idea how to delete the files remotely or empty the trash. Please any help with automating the tasks or remotely emptying the trash would be appreciated.
1) Log on to a network computer using SSH
2) Take a screenshot of that computer every 10 seconds and copy it to my computer
and then after I have taken enough screenshots (which will vary depending on user activity)
3) Delete the file myusername@myIP in the network computer's Home folder
4) Delete the screenshot file
5) Empty the trash
I would like all these things to be done without the user knowing their happening - ie no dialog boxes, no alert sounds etc
I know that most programmers don't like to help someone who hasn't done their homework. So... I am able to log on to the network computer via Terminal using ssh targetuser@targetIP and I am also able to take the screenshot and copy it to my computer (but not every 10 seconds) using screencapture -x ~/screen.jpg followed by scp ~/screen.jpg myusername@myIP: However, I have to do these manually every 10 seconds which is really not very practical or possible. I have no idea how to delete the files remotely or empty the trash. Please any help with automating the tasks or remotely emptying the trash would be appreciated.