Date: Mon, 13 Jun 2011 17:58:04 -0400 (EDT) From: Daniel Feenberg <feenberg@nber.org> To: Kurt Buff <kurt.buff@gmail.com> Cc: FreeBSD Questions <questions@freebsd.org> Subject: Re: Probably working too hard for this cron question Message-ID: <Pine.GSO.4.64.1106131757560.15699@nber6> In-Reply-To: <BANLkTimSP%2BnAGhimoiy08NQCZFLuhG8fow@mail.gmail.com> References: <BANLkTimD4DaYtvDmiJ4=qaj3CNsKr=XHNQ@mail.gmail.com> <BANLkTinCFMqGBx0jkbRH-J03wNkQaPOo7Q@mail.gmail.com> <17591_1307999699_4DF67DD3_17591_66_1_D9B37353831173459FDAA836D3B43499BF89C4E8@WADPMBXV0.waddell.com> <BANLkTimSP%2BnAGhimoiy08NQCZFLuhG8fow@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1804928587-1308002284=:15699 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE I forgot to send it. I just did. dan On Mon, 13 Jun 2011, Kurt Buff wrote: > Indeed. Brain fade comes with age - and long weekends with the 2 year old= boy... > > Kurt > > On Mon, Jun 13, 2011 at 14:14, Gary Gatten <Ggatten@waddell.com> wrote: >> Yeah Pete, kinda need that huh. =C2=A0Kurt, If that turns out to be the = only issue, don't feel bad - I've forgotten it myself several times! =C2=A0= I'm sure many others have as well! >> >> G >> >> >> -----Original Message----- >> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-question= s@freebsd.org] On Behalf Of pete wright >> Sent: Monday, June 13, 2011 3:25 PM >> To: Kurt Buff >> Cc: FreeBSD Questions >> Subject: Re: Probably working too hard for this cron question >> >> On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff <kurt.buff@gmail.com> wrote: >>> All, >>> >>> I've googled a bunch, read some freebsd.org docs, and just can't >>> figure this out. >>> >>> I have a script that should read the current date into a variable, >>> append the time/date stamp at the beginning of the file created with >>> the date in the variable, do a bunch of cURL stuff, then append a >>> time/date stamp at the end of the file. >>> >>> It works if I run it manually, but not from cron. >>> >>> Here are the batchfile and the cron entry: >>> >>> ----------begin script---------- >>> dt=3D`/bin/date "+%Y-%m-%d"` >>> /bin/date > /root/$dt-external1.txt >>> /usr/local/bin/curl -K /root/urls.txt >> /root/$dt-external1.txt >>> /bin/date >> /root/$dt-external1.txt >>> ----------end script---------- >>> >>> ----------begin crontab---------- >>> 15 12 * * * =C2=A0 =C2=A0 =C2=A0 =C2=A0/root/do-curl.sh >>> ----------end crontab---------- >>> >>> I'm doing all of this as root, as you can see. >>> >>> The job launches - I can see an entry for cURL in top - but no file in = /root. >>> >>> I've tried several variations on the first line of the script, but I'm >>> getting nowhere, though I'm sure it's something stupidly simple that >>> I'm missing. >>> >>> What am I missing? >> >> #!/bin/sh ? >> >> -pete >> >> >> >> -- >> pete wright >> www.nycbug.org >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" >> >> >> >> >> >> <font size=3D"1"> >> <div style=3D'border:none;border-bottom:double windowtext 2.25pt;padding= :0in 0in 1.0pt 0in'> >> </div> >> "This email is intended to be reviewed by only the intended recipient >> =C2=A0and may contain information that is privileged and/or confidential= =2E >> =C2=A0If you are not the intended recipient, you are hereby notified tha= t >> =C2=A0any review, use, dissemination, disclosure or copying of this emai= l >> =C2=A0and its attachments, if any, is strictly prohibited. =C2=A0If you = have >> =C2=A0received this email in error, please immediately notify the sender= by >> =C2=A0return email and delete this email from your system." >> </font> >> >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > ---559023410-1804928587-1308002284=:15699--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.1106131757560.15699>