rayloewy
October 27th, 2005, 05:42 PM
I have been using bash scripts in cron.hourly for many years
with Red Hat and Fedora. I have started to use Ubuntu 5.10 "The Breezy Badger" on one of my webservers, but when the script runs
it appends control-m (cr, lf) to the end of the file name.
Here is a sample of the script in cron.hourly:
cat /root/http_scripts/index_top>/var/www/html/index.html
cat /root/http_scripts/nav_head>>/var/www/html/index.html
cat /root/http_scripts/index_body>>/var/www/html/index.html
cat /root/http_scripts/nav_foot>>/var/www/html/index.html
If I paste this into a bash shell it runs correctly.
Hope someone can help with this mystery...
with Red Hat and Fedora. I have started to use Ubuntu 5.10 "The Breezy Badger" on one of my webservers, but when the script runs
it appends control-m (cr, lf) to the end of the file name.
Here is a sample of the script in cron.hourly:
cat /root/http_scripts/index_top>/var/www/html/index.html
cat /root/http_scripts/nav_head>>/var/www/html/index.html
cat /root/http_scripts/index_body>>/var/www/html/index.html
cat /root/http_scripts/nav_foot>>/var/www/html/index.html
If I paste this into a bash shell it runs correctly.
Hope someone can help with this mystery...