User Tools

Site Tools


public:remote_screen_capture_of_desktop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:remote_screen_capture_of_desktop [2020/10/02 14:56] rhudakpublic:remote_screen_capture_of_desktop [2024/01/25 03:31] (current) – external edit 127.0.0.1
Line 76: Line 76:
   </body></html>   </body></html>
      
-Then you can browse to this page and it will refresh every 5 min:<color #1c1ced>http://shipserver/path/to/shipX/shipuser_screenshotX.html</color> +Then you can browse to this page and it will refresh every 5 min: http://shipserver/path/to/shipX/shipuser_screenshotX.html  
 + 
 + 
 +====Step 4: Creating a cronjob==== 
 + 
 +Make the <color #1c1ced>landuser@landserver</color> have a crontab entry to run the program 
 +hourly at 10 min past the hour.  
 + 
 +**NOTE:** crontab does not have a good environment so if you need to set your PATH, do so in a bash_env file and source that before running the command. That's how I did it.  Or be very explicit about setting your PATH first.This is all **one line**:  
 + 
 +  10 */1 * * * (date +\%F\ \%T; cd /path/to/myenv; . ./bash_env;  
 +  /path_to_script/remote_shipX_screenshot.bash) >> /path/to/logfiles/shipXscreenshot.log 2>&1
      
 +**Another note:** I also outputted the stdout to a log file.
 +
 +====Step 5: Running from your laptop====
 +
 +  ssh landuser@landserver /path/to/scripts/remote_shipX_screenshot.bash
 +  
 +or make an alias:
 +
 +  alias get_shipX_screenshot='ssh landuser@landserver /path/to/scripts/remote_shipX_screenshot.bash; echo o 
 +  "view this file"; echo "";echo http://shipserver/path/to/shipX/shipuser_screenshotX.html'
 +  
 +  
 +***Special thank you to Jules Hummon for providing steps/codes above.**
public/remote_screen_capture_of_desktop.1601650608.txt.gz · Last modified: 2024/01/25 03:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki