On 15 December 2010 16:21, Jim Gibson <jimsgib...@gmail.com> wrote:
> On 12/15/10 Wed  Dec 15, 2010  8:05 AM, "Mike Martin" <redt...@gmail.com>
> scribbled:
>
>> Hi
>>
>> I am trying pass a perl one-liner to at intact eg:
>>
>> echo 'perl -mLinux::DVB::DVBT -e 'my
>> $dvb=Linux::DVB::DVBT->new(O_NONBLOCK,'O_RDONLY');$dvb->set_frontend('frequenc
>> y'
>> => '497167000','tsid' => '4222');my $file="/storage/burn/testol";my
>> $ref={pmt=>'10'};$dvb->set_demux(101,102);$dvb->record($file,"00:10",$ref);
>> '
>>
>> The aim is to run the one-liner from at
>>
>> However echo strips the quotes so the command fails to run
>>
>> any ideas or alternative approaches
>
> Put the call to perl in a shell script and schedule that. Don't fixate on
> writing a one-liner. You don't really have a one-liner, and putting all of
> your statements on one line accomplishes little.
>

to explain further the aim is that the one-liner is generated on the
fly and then passed to at to schedule recordings which is why I want
it to be a one liner so that at wll parse it correctly

generating seperate files for each iteration could get really, really messy

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to