public:remote_screen_capture_of_desktop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
public:remote_screen_capture_of_desktop [2020/10/02 14:57] – [Step 3: Wrapping with an HTML] rhudak | public:remote_screen_capture_of_desktop [2020/10/02 15:04] – rhudak | ||
---|---|---|---|
Line 77: | Line 77: | ||
| | ||
Then you can browse to this page and it will refresh every 5 min: http:// | Then you can browse to this page and it will refresh every 5 min: http:// | ||
+ | |||
+ | |||
+ | ====Step 4: Creating a cronjob==== | ||
+ | |||
+ | Make the <color # | ||
+ | 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 / | ||
+ | / | ||
| | ||
+ | **Another note:** I also outputted the stdout to a log file. | ||
+ | |||
+ | ====Step 5: Running from your laptop==== | ||
+ | |||
+ | ssh landuser@landserver / | ||
+ | | ||
+ | or make an alias: | ||
+ | |||
+ | alias get_shipX_screenshot=' | ||
+ | "view this file"; echo ""; | ||
+ | | ||
+ | | ||
+ | ***Special thank you to Jules Hummon for providing steps/codes above.** |
public/remote_screen_capture_of_desktop.txt · Last modified: 2024/01/25 03:31 by 127.0.0.1