Computing.Net > Forums > Solaris > Running a simple 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.

Running a simple script

Reply to Message Icon

Name: jrothannd
Date: September 16, 2004 at 04:02:35 Pacific
OS: Solaris
CPU/Ram: 256
Comment:

I am a windows person and I have little experience with Solaris.

I have a script called backup and I need to run it on a Solaris computer. I am logon as su and I'm in the currect directory, but when I enter backup nothing happens. I get a bad command error.

Can anyone give me suggestions what I might have to do to run the script? The more details the better.

Thank you



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: September 16, 2004 at 06:57:13 Pacific
Reply:

Most likely your current directory is not in your $PATH . Try executing with either the full path to the script or as ./scriptname



0

Response Number 2
Name: wing7
Date: September 21, 2004 at 10:47:38 Pacific
Reply:

1) is your script writting in windows(bat)
if so, i don't think u can run in Unix box.
2) ensure your script is executable.
3) to execute the script run ./backup or sh backup in the directory that u place your script.

I am windows person too.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: Running a simple script

Need help with a simple script www.computing.net/answers/solaris/need-help-with-a-simple-script/2777.html

i can not run a script www.computing.net/answers/solaris/i-can-not-run-a-script/4113.html

how to encrypt a shell script? www.computing.net/answers/solaris/how-to-encrypt-a-shell-script/4561.html