Date: Sun, 28 Jun 2009 00:17:02 +0800 From: Zhang Weiwu <zhangweiwu@realss.com> To: Modulok <modulok@gmail.com> Cc: FreeBSD Questions mailing list <freebsd-questions@freebsd.org> Subject: Re: scripting suggestion: how to make this command shorter Message-ID: <4A4645FE.4040606@realss.com> In-Reply-To: <64c038660906270721v6908c058l53cc574ce43f40a1@mail.gmail.com> References: <4A461551.7090702@realss.com> <64c038660906270721v6908c058l53cc574ce43f40a1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Modulok wrote: > Zhang, > > Perhaps you could put it into a text file and have cron simply execute > the text file. By doing so, you are free to break it up into a more > digestible format and start using programming constructs to make your > life easier. (Such as storing values in variables, or processing > standard input so the script can be called with various URL's and so > forth.) Your cron job could then simply execute "/home/you/bin/foo", > where 'foo' is whatever you decide to name the script. > > Is there any specific reason why this has to be all on one line? > -Modulok- Nothing more than curiosity and small benefit of not having to take care one more file. I know what you mean:)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A4645FE.4040606>