Technical question regarding Cron jobs
#7
Quote:Modern versions of vi (read -- the vi with linux which is really vim in a reduced mode) are not the best test for this, as they understand how to deal with DOS text files and will hide the ^M's from you.
Turns out you're right. Someone PM'ed me with the command:

Code:
head -1 <scriptname> | od -c | head -1

Which I ran, and found that there was a \r in the first line:

Code:
-bash-2.05b$ head -1 tschk.sh | od -c | head -1
0000000&nbsp;&nbsp; #&nbsp;&nbsp; !&nbsp;&nbsp; /&nbsp;&nbsp; b&nbsp;&nbsp; i&nbsp;&nbsp; n&nbsp;&nbsp; /&nbsp;&nbsp; s&nbsp;&nbsp; h&nbsp;&nbsp;\r&nbsp;&nbsp;\n

This never showed in vi. Bleh. I used an online Dos2Unix converter to strip the \r and it works now.

Thanks guys!

-Bolty
Quote:Considering the mods here are generally liberals who seem to have a soft spot for fascism and white supremacy (despite them saying otherwise), me being perma-banned at some point is probably not out of the question.
Reply


Messages In This Thread
Technical question regarding Cron jobs - by Bolty - 08-22-2006, 04:57 AM
Technical question regarding Cron jobs - by Wyrm - 08-22-2006, 07:27 AM
Technical question regarding Cron jobs - by Bolty - 08-22-2006, 11:35 AM
Technical question regarding Cron jobs - by Bolty - 08-22-2006, 01:31 PM
Technical question regarding Cron jobs - by Doc - 08-22-2006, 02:58 PM
Technical question regarding Cron jobs - by Yrrek - 08-23-2006, 03:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)