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
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.
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.
Summary: Hey all. I'm working on limiting telnet access to one user on my system (with a restricted shell) by way of inserting a simple test condition in the .profile of all user directories. However, I'm hav...
Summary: 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 ma...
Summary: Can somebody suggest how to encrypt a shell script. I mean I have written a script and I want that people can only run it rather than view and edit it btw i am using "csh" Warm Regards Kamalpreet Sing...