Execute commands on linux remotely through Dropbox ?

vshotarov

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 ?

Leandro Papasidero

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is it possible to execute commands remotely (ssh), through a Java program

From Dev

Send Commands remotely from Windows to Linux through Java

From Dev

How to execute multiple commands remotely on few servers?

From Dev

Remotely execute commands but still have control of the host

From Dev

Fix Dropbox sync remotely

From Java

How to execute mongo commands through shell scripts?

From Dev

How to execute terminal commands through scala

From Dev

How to execute the vim commands through shell script

From Dev

execute multiple commands on console through unix shell

From Dev

Is there a way to search through the eclipse commands to execute one?

From Dev

Remotely execute windows 10 command from Linux box

From Java

Execute combine multiple Linux commands in one line

From Dev

How to execute complex linux commands in Qt?

From Dev

Execute Commands in the Linux Commandline [Lazarus / Free Pascal]

From Dev

Execute three commands in single command line in Linux

From Dev

Limit user to execute selective commands (Linux)

From Dev

Login to remote Linux box and execute commands

From Dev

Execute several commands through ssh with local and remote values

From Dev

How do I execute shell commands through eggPlant on Windows?

From Dev

How to execute TCL commands of Rocket Universe through Ansible?

From Dev

execute multiple commands in Linux using python in the same time

From Dev

Linux terminal - frozen update of input but can execute commands?

From Dev

Cannot execute basic linux commands (ps, ls, ifconfig) - File not found

From Dev

How to execute linux commands in a remote machine with shell script

From Dev

Unable to execute tcpdump remotely with Paramiko

From Dev

gcloud compute execute command remotely

From Dev

ssh master - execute su remotely

From Dev

how can we use linux commands on windows through git?

From Dev

Working remotely on linux with samba

Related Related

  1. 1

    Is it possible to execute commands remotely (ssh), through a Java program

  2. 2

    Send Commands remotely from Windows to Linux through Java

  3. 3

    How to execute multiple commands remotely on few servers?

  4. 4

    Remotely execute commands but still have control of the host

  5. 5

    Fix Dropbox sync remotely

  6. 6

    How to execute mongo commands through shell scripts?

  7. 7

    How to execute terminal commands through scala

  8. 8

    How to execute the vim commands through shell script

  9. 9

    execute multiple commands on console through unix shell

  10. 10

    Is there a way to search through the eclipse commands to execute one?

  11. 11

    Remotely execute windows 10 command from Linux box

  12. 12

    Execute combine multiple Linux commands in one line

  13. 13

    How to execute complex linux commands in Qt?

  14. 14

    Execute Commands in the Linux Commandline [Lazarus / Free Pascal]

  15. 15

    Execute three commands in single command line in Linux

  16. 16

    Limit user to execute selective commands (Linux)

  17. 17

    Login to remote Linux box and execute commands

  18. 18

    Execute several commands through ssh with local and remote values

  19. 19

    How do I execute shell commands through eggPlant on Windows?

  20. 20

    How to execute TCL commands of Rocket Universe through Ansible?

  21. 21

    execute multiple commands in Linux using python in the same time

  22. 22

    Linux terminal - frozen update of input but can execute commands?

  23. 23

    Cannot execute basic linux commands (ps, ls, ifconfig) - File not found

  24. 24

    How to execute linux commands in a remote machine with shell script

  25. 25

    Unable to execute tcpdump remotely with Paramiko

  26. 26

    gcloud compute execute command remotely

  27. 27

    ssh master - execute su remotely

  28. 28

    how can we use linux commands on windows through git?

  29. 29

    Working remotely on linux with samba

HotTag

Archive