ok this is weird... I'm trying to execute a script and this is what I get:
Code:
[root@mailserver temp]# ./scadalog_put
: No such file or directoryta/shared/scadadump.sql
: command not founde 2:
[root@mailserver temp]#
The script is:
Code:
/usr/local/mysql/bin/mysql -h localhost -D business -uroot -p12345678 </data/shared/temp/scadadump.sql
All the paths are right since if I do it manually it works.
Anyone know what the heck is going on? Should I just reinstall red hat, since obviously something is way wrong. command not founde !?
More BS behaviour:
Code:
echo restoring forum...
/usr/local/mysql/bin/mysql -u root -p12345678 -h localhost iceteks_reliexec</data/shared/temp/forum.sql
echo restoring articles
/usr/local/mysql/bin/mysql -u root -p12345678 -h localhost iceteks_articles</data/shared/temp/articles.sql
echo restoring scada
/usr/local/mysql/bin/mysql -u root -p12345678 -h localhost iceteks_scada</data/shared/temp/scada.sql
echo restoring front page news
/usr/local/mysql/bin/mysql -u root -p12345678 -h localhost icetek_frontpagenews</data/shared/temp/news.sql
echo done
WTF? If I copy and paste it in the console, it works... but I don't want to do that, I want to be able to just type the script name and boom, it executes all of it.
Oh and it keeps referring to lines that don't even have anything in them.
Code:
restoring forum...
: No such file or directory /data/shared/temp/forum.sql
: command not found line 3:
restoring articles
: No such file or directory /data/shared/temp/articles.sql
: command not found line 6:
restoring scada
: No such file or directory /data/shared/temp/scada.sql
: command not found line 9:
restoring front page news
: No such file or directory: /data/shared/temp/news.sql
: command not found line 12:
done
: command not found line 14:
If I just remove the spaces, it still screws around with me.
Code:
restoring forum...
: No such file or directory /data/shared/temp/forum.sql
restoring articles
: No such file or directory /data/shared/temp/articles.sql
restoring scada
: No such file or directory /data/shared/temp/scada.sql
restoring front page news
: No such file or directory /data/shared/temp/news.sql
done
[root@mailserver temp]#
This thing is screwed up real good. Is there a way I can fix this? Do I need to reinstall anything? Obviously something is WAY wrong. And everything is right, I checked a million times. I can open those paths no problem so I have no clue what the hell it's trying to say that it's "not founde" (spelling mistake too)