in reply to Re: Re: Running Linux PovRay, Shell's okay but cron won't play
in thread Running Linux PovRay, Shell's okay but cron won't play
Final recap for povray/perl folks If you want to automate povray from outside your system. The hurdle is faking a shell. My solution involves running the above perl code inside a root crontab. This was the only solution i could come up with save from recompiling povray.#!/usr/bin/perl-w use strict; use Net::SSH::Perl; my $host = "111.111.111.111"; my $user = "usernm"; my $pass = "passwd"; my $cmd = "povray +I/mypath/gigtown.pov"; my $ssh = Net::SSH::Perl->new($host,use_pty=>1); $ssh->login($user, $pass); print $ssh->cmd($cmd); exit;
|
|---|