Computing.Net > Forums > Solaris > Running a simple script

Running a simple script

Reply to Message Icon

Original Message
Name: jrothannd
Date: September 16, 2004 at 04:02:35 Pacific
Subject: Running a simple script
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


Report Offensive Message For Removal


Response Number 1
Name: David Perry
Date: September 16, 2004 at 06:57:13 Pacific
Subject: Running a simple script
Reply: (edit)

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



Report Offensive Follow Up For Removal

Response Number 2
Name: wing7
Date: September 21, 2004 at 10:47:38 Pacific
Subject: Running a simple script
Reply: (edit)

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.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Running a simple script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software