NLS Posted March 28, 2008 Share Posted March 28, 2008 I loaded go script in my favourite text editor (in Windows, but this editor is able to distinguish DOS and Linux files - from the LF/CR probably) and found out it is in "DOS" format. Am I doing something wrong? I expected this would be in UNIX format. Link to comment
Joe L. Posted March 28, 2008 Share Posted March 28, 2008 Because Tom expected people to possibly edit it, it is executed like this when invoked from /etc/rc.d/rc.local: # Invoke the 'go' script if [ -f /boot/config/go ]; then fromdos </boot/config/go >/var/tmp/go chmod +x /var/tmp/go /var/tmp/go fi By passing the "go" script through "fromdos" the extra dos cr/line feed sequences are removed. The script is actually copied to /var/tmp/go, made executable, and then executed from /var/tmp. Joe L. Link to comment
NLS Posted March 29, 2008 Author Share Posted March 29, 2008 aaaah figures smart (I guess "UNIX" editing won't hurt anyway) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.