Re: RM to mp3 script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nice one, that seems like a very logical way to do it.
I did try running from the at command and yes it did work.

I will check the env out.

Cheers

2009/4/4 Phil Meyer <pmeyer@xxxxxxxxxxxxxxxx>:
> Paul Ward wrote:
>>
>> Hello,
>>
>> Ok forsome reason this script will not convert the rm stream to an mp3
>> if it runs in the cron.
>> Can someone point me in the right direction on how to fix this.
>>
>> The script is as follows:
>>
>
> ...
>
> Most often, these issues of running from command line, but not running from
> cron, are environment related.
>
> To test this, run your script once using at instead of cron, ie:
>
> at now + 1 minute
> at> script
> at><CNTRL>d
>
> If that works, then its the envoronment, and you can 'cheat' to make cron
> work.  Here is how:
>
> Repeat the above at command, but this time give it 2 or three minutes.  Long
> enough for you to 'find' the atjob.
>
> $ su -
>
> # cd /var/spool/at
> # ls
>
> You will notice at least one file here with a filename in the form of:
> a00001013b0cd1
>
> This is a script that 'at' created, and it includes your complete
> environment as of when 'at' was executed.
>
> Copy this script to some place before it runs and gets removed, ie:
>
> # cp a00001013b0cd1 /tmp/template_script.sh
> # chown myuser:mygroup /tmp/template_script.sh
>
> You now have a template you can use for cronjobs that require a user
> environment to run.
>
> Good Luck!
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>



-- 

email: pnward@xxxxxxxxxxxxxx
website: http://www.pward.co.uk
MSN: pob2000is@xxxxxxxxxxx
Skype: paul.n.ward

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux