Computing.Net > Forums > Solaris > i can not run a script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

i can not run a script

Reply to Message Icon

Name: GreyKoshak
Date: March 10, 2004 at 09:10:31 Pacific
OS: Solaris 9
CPU/Ram: UltraSparc 440, RAM 1Gb
Comment:

I installed core of Solaris 9, then i tried to run myself script, but OS saying "Command not found". What's wrong? I run the script having privalage of root. The script is very simple.



Sponsored Link
Ads by Google

Response Number 1
Name: mikelaw
Date: March 10, 2004 at 09:38:18 Pacific
Reply:

Try ./<script> or check your path.


0

Response Number 2
Name: GreyKoshak
Date: March 10, 2004 at 09:46:51 Pacific
Reply:

Of course, i run as like as you advise.
And what about path? The script is located in my (root) directory.


0

Response Number 3
Name: mikelaw
Date: March 10, 2004 at 09:49:07 Pacific
Reply:

export PATH=$PATH:.

It should take care of your home, in this case root, directory.


0

Response Number 4
Name: GreyKoshak
Date: March 10, 2004 at 09:56:33 Pacific
Reply:

It's only practice.
As you advise i do that, but have old message "Command not found".



0

Response Number 5
Name: florocent
Date: March 10, 2004 at 22:42:19 Pacific
Reply:

get the script in current dir, and use ./<script>. or make the current dir in your path *not recomended because of security problems with root, never use "."in your PATH when you are a root,
you may need to change the permission of a script
use chmod 755 ./<script> or chmod 700 ./<script> and then try to run it using ./<script>
there could be one possible reason for this is that you have lerexe kind of setup configured, but you can try to remove if you have configured.
have a good luck.

admin@paklight.net


0

Related Posts

See More



Response Number 6
Name: GreyKoshak
Date: March 11, 2004 at 09:22:04 Pacific
Reply:

First line in the script is:
#!/usr/bin/sh
As for me, it's sign file is script. Or not?

When i loggining i load tcsh-shell. May be it's wrong?


0

Response Number 7
Name: jonobr
Date: March 12, 2004 at 06:45:57 Pacific
Reply:

Are you sure your script is ok?

A good tip for things like that is to put sleeps and echos into the script so when it is executing, you can see where it fails and at what point you get the error.

I say this as your permissions etc appear ok

Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

delay in submitting print... Oracle 9i run on sun ultr...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: i can not run a script

Can not change to super user www.computing.net/answers/solaris/can-not-change-to-super-user-/5048.html

Command not Found from Local login www.computing.net/answers/solaris/command-not-found-from-local-login/537.html

PGX32 Card Installation and CDE www.computing.net/answers/solaris/pgx32-card-installation-and-cde/3509.html