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
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.
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
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.
Summary: I got strange problem on SUN Netra T1 server. I tried to login to that machine using Telnet. I could login using my login ID, but I can not run "su" command for Super User mode. The problem came when ...
Summary: Hi, I can login in the Solaris 7 server as root and any other user but I can not run any command from there except "pwd". But I can run any command from telnet session to the server from any other com...
Summary: I had a 220R server with Solaris 8 installed but without a graphics card. Now, I have a PGX32 card and I have installed it physically in the machine. I get a display for command line but I can not run...