I am working in a large lab with linux machines and we are using it for doing CGI stuff. Basically, I want to be able to execute commands on the machine that I am logged in there, while I am at home (using Windows here). So far I've been able to get the output of the terminal to be written in realtime on a txt file which is saved on dropbox, so I can check the progress of my processes while I am at home. So I am thinking about a way of reversing the process. Is it possible to save the commands in a txt or sh file on dropbox and have a process on my machine at the labs which is constantly looking at this file and executing the commands written there ?
Install inotify-tools
Ubuntu:
sudo apt-get install inotify-tools
Code
inotifywait -m ~/Dropbox -e create -e moved_to |
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
# do something with the file
done
This works for me
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments