It is currently Thu, 20 Jan 2022 11:11:41 GMT

Author Message
 running a script
-rwxr--r-- myfile

./myfile & didnt run

nohup myfile &, runs

why the difference?

 Mon, 11 Sep 2006 13:06:25 GMT   
 running a script
On 24 Mar 2004 21:06:25 -0800, yls177

Did you get any error messages?  Without seeing the contents of
myfile, it's impossible to say why ./myfile & didn't run.

Incrsease your earoning poswer and gaerner profwessional resspect.
Get the Un1iversity Dewgree you have already earned.
 [from the prestigious, non-accredited University of Spam!]

 Mon, 11 Sep 2006 19:32:51 GMT   
 running a script

At a guess, either:

a) you don't own the script and so don't have execute permission on it, or
b) you aren't in the same directory as the script when you're trying to
execute it

In either case, the nohup example would pick up a version of "myfile"
from elsewhere in your PATH. I doubt if the "nohup" makes any difference
- it's just "./myfile" vs "myfile".


 Mon, 11 Sep 2006 21:45:09 GMT   
 running a script

What is displayed when you run ./myfile ?


 Tue, 12 Sep 2006 04:29:26 GMT   
 running a script

How can we tell without knowing what's in the script? Can you provide
some more information, like the script, the output you get when you
run the two commands, what "didn't run" means, etc?

The Dutchman still wears wooden shoes, his cap and coat are patched
with the love that Magaret sewed there...
  - Steve Goodman

 Tue, 12 Sep 2006 04:40:30 GMT   
 running a script

the contents of the file are just few lines of rcp. there are no #! in
the beginning of the file. please advise..


 Tue, 12 Sep 2006 09:27:44 GMT   
 running a script

What I posted had nothing to do with whether or not there's a #! at the start of
the file.


 Tue, 12 Sep 2006 11:24:35 GMT   
 running a script

thanks for helping,,, now this time as below

i have a script, myrm. it contains the below entries

rm *123*.dbf
rm *456*.dbf
rm *789*.dbf

however, some files were not removed. any comments?

 Tue, 12 Sep 2006 17:21:28 GMT   
 running a script

   If they were not removed, they either didn't match the patterns you
   used, or you don't have the perissions to remove them.

    Chris F.A. Johnson        
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License

 Tue, 12 Sep 2006 17:35:21 GMT   
 running a script

That implies that wome files WERE removed which means your script did
run which is a different problem from the one you posted. Try again....


 Tue, 12 Sep 2006 22:57:11 GMT   
 running a script

You can try running your script in debug mode (-x).  What message is
displayed when you run the script?  Does the userid that you are using
to run your script have sufficient permissions to remove the .dbf
files?  Why not consolidate those three 'rm' statements to one using
an RE?


 Wed, 13 Sep 2006 00:16:45 GMT   
 running a script
"Chris F.A. Johnson" <> wrote in message <news:c40tgo$2dm66o$>...

i am root user

 Wed, 13 Sep 2006 00:43:40 GMT   
 running a script

   Read the whole reply to your question.

   What system are you using?

   If Linux, what does lsattr say about the files that were not

   Give an example of a file you thought should have been deleted, both
   the output of "ls -l" and "lsattr".

   Cut and paste any error messages the script produces.

    Chris F.A. Johnson        
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License

 Wed, 13 Sep 2006 04:55:09 GMT   
   [ 13 post ] 

Similar Threads

1. scripts running other scripts

2. Incomplete output from crontab email: running shell scripts from a perl script

3. Script to spaw and run a script

4. running a script form csh script

5. How can I run a script at startup?

6. Help:apache did not run perl script

7. how to run *.sh scripts

8. Auto run login script

9. running perl script on linux

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software