[Xastir] Snapshot question

Jason Hitesman jradio at hitesman.com
Sat Apr 2 16:43:19 EST 2005


James Ewen wrote:

> Joe probably wants to know how to get the snapshot off of his Linux 
> machine and uploaded to the machine that serves his webpages.

That was my original plan.  But after an afternoon of playing around 
with ways of scripting an FTP upload I decided it was easier to just use 
the resources I already had available :D

> It would probably be a cron setup to upload at the same interval as the 
> snapshots are created (every 10 minutes???), and simply be a one line 
> command like:
> 
> wput snapshot.png www.ka3nam.com/snapshot.png
> or
> ftp user:password snapshot.png www.ka3nam.com/snapshot.png
> 
> Something along those lines anyway...

Yep, something like that would work well.  But I've never been very good 
at shell scripting and couldn't come up with anything that would 
reliably ftp a file up to my main webserver.  I could whip something up 
in Perl or PHP...but then it's getting more complicated again and I just 
went for what was for me the path of least resistance.

I saw several explanations of how to script an FTP upload (hint: some 
webcams and other similar setups do it) but none of them wanted to play 
nice on my particual setup.

And since I run VNC on my linux box this has the added benefit of 
letting me use my jhitesma.homeunix.com address to interact with my 
Xastir client from anywhere without having to keep track of my latest IP 
address.  (and with slimserver on that machine it also lets me access my 
music collection from anywhere.)

----
Jason



More information about the Xastir mailing list