/ Published in: Perl
URL: codefromthe70s.org
this is a perl scrip that downloads the most recent on demand image and sets the background to it. I know that exec is insecure but I figure it's secure enough inside the box.
Expand |
Embed | Plain Text
#!/usr/bin/perl my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get('http://codefromthe70s.org/bin/desktopearthgen.exe?width=1920&height=1200&height=1200&bars=1¢er=1&clouds=1&utc='.time); if ($response->is_success) { } else { } close current; exec '/usr/bin/fbsetbg /home/dcooley/.fluxbox/backgrounds/current.png';
You need to login to post a comment.
