Click to See Complete Forum and Search --> : Shell Script cd Issue Fedora


jblaha
12-16-2003, 11:31 AM
All,

I have a simple shell script with the following line inside.

cd /home/jblaha/log_files/files2_process

I get this error message:

: No such file or directorysh: line 5: cd: /home/jblaha/log_files/files2_process

If I go to my shell promt and type in the line it works just fine. I just migrated to Fedora Core 1 from RH9 now all my scripts seem to be bugging out on me. Any ideas here?

Regards,
James Blaha

jblaha
12-16-2003, 12:29 PM
All,

I think I got this one figured out! The problem was there was nothing in the directory.

What would the proper script be to check a directory and if there are files in it remove them all?

Regards,
James Blaha

jblaha
12-16-2003, 12:43 PM
All:

I'm going to close this thread an post my last question.

-JB

emactive
12-16-2003, 10:58 PM
whats up jimmy? FEDORA all the way! things are running smooth. funny, i found this post while i was searching for fedora threads. by the way, have you upgraded your linux kernel to 2.4.3? i heard there is a root exploit with all previous versions. i haven't upgraded tho. don't know much about upgrading. if you know how to, help me out one of these days. talk to you later!

peace,
eric

jblaha
12-17-2003, 09:15 AM
Hi Eric,

Log into the desktop as the root account and run the Up2Date feature. It’s the icon by the clock. For the most part it’s like an M$ update. Email me directly is you have any problems.

-JB

jim mcnamara
12-17-2003, 11:06 AM
find /home/jblaha/log_files/files2_process -name \* -exec rm -f {} \;