Re: fetchmail and watch command

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

 



On Thu, 2010-02-11 at 14:36 -0500, matias kaukonen wrote:
> What I'm trying to do is enable the watch command to run a prog named
> fetchmail.run.
> The following command string does not work when run in the background
> (it
> works ok from the foreground):
> 
> watch -n 30 fetchmail.run > /dev/null &
>  
> fetchmail.run
> if ["`ps --User matias | grep fetchmail`" == ""]; then
> /usr/bin/fetchmail -f ~/.fetchmailrc --mda "procmail -f %F"
> > /dev/null 2>&1; fi
> 
> Is there some technique to fix this that's concise and easy to
> understand?
> 
> thx.,
> matias.
> ~

watch is probably stopping on signal 19 because of tty access.

Seems to me that you just want to run this command every 30 seconds. Why
not just put a loop in the fetchmail.run script?

	while sleep 30
	do
		...
	done


-Chris

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
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