Visit The New, Modern Unix Linux Community


Manual run a script on UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Manual run a script on UNIX
# 1  
Manual run a script on UNIX

Hi,I'm currently working on an dev environment that has no jobs to run the scripts.How can I manual run the scripts. on Unix?

---------- Post updated at 05:45 AM ---------- Previous update was at 05:43 AM ----------

Is it something like this....

../int/inbound>./filename.sh inputfilename

Thanks=)
# 2  
yes - it is:

[path to script][script name] parameter1

The example you gave means
1. go up the directory tree one hop -- the .. part
2. descend the int/inbound> directory -- is the > part of the directory name?
3. execute filename.sh
# 3  
Hi,
../ -I only shows the directory path shortcut there that was too long to say
..is this the command?

./filename.sh inputfilename

will I execute that on the directory that the scripts calling..?
for ex. if the script calls in the directory
int/inbound..
thanks..=)
# 4  
./ means look in the current directory. So the answer is yes, your example is correct
This User Gave Thanks to jim mcnamara For This Post:
# 5  
Hi again =)
Is it right that I will execute to manual run the script where the script is located.?
for example my script is located in autosys/scripts so I will execute the manual running of the scripts on that directory.?

thanks,
# 6  
This is one way to start the script; change directory to the directory where the script "lives", and start with ./ in front of your script:

cd your_directory_here
./your_script_here

e.g.:
Code:
cd /bin
./ls

(yes - a stupid example)

or: use the absolute path in front of the script:

your_path/your_script

e.g.:
Code:
/bin/ls

best regards
Andreas

Last edited by Yogesh Sawant; 07-26-2010 at 05:32 AM.. Reason: added code tags
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #905
Difficulty: Easy
Generally speaking, Unix systems are commercial, closed source and propriety operating systems so it is expensive to customize for supercomputing projects. Linux, on the other hand, is free and easier to customize.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Goto - UNIX v6 Manual Questions

Hey :) I am trying to understand the command goto. I have some questions regarding the goto manual. 1.What does the underlined part mean? I'm not allowed to type goto in the shell? But if goto is written into a file everything is okay? 2.So if a part of my file looks like this ... goto... (8 Replies)
Discussion started by: orbit
8 Replies

2. Windows & DOS: Issues & Discussions

Run UNIX Script from Excel

How to run scripts from Excel and bring results back to excel? (10 Replies)
Discussion started by: santoshdrkr
10 Replies

3. Shell Programming and Scripting

How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX?

Please share the doc asap as very urgently required. (1 Reply)
Discussion started by: 24ajay
1 Replies

4. Shell Programming and Scripting

How to check if script is run via cron or manual=command line?

Hi all, I have a script that can be run via cron or via the command line. Is there any way that I can place something on the script to be able to distinguish/differentiate whether the script was run via a user in the command line or whether it was run from the cron? (3 Replies)
Discussion started by: newbie_01
3 Replies

5. Shell Programming and Scripting

Manual input using script

hello, I have one script A that requires to to press "q" manually to quit the script. I am calling script A in another script B. Is there any way by which this "giving q manually" can be done inside script. and it does not require to gve it manually when using script B. Thanks. (8 Replies)
Discussion started by: skhichi
8 Replies

6. Shell Programming and Scripting

Run the UNIX script only in specified timelines

Hi, I have an UNIX script which runs in every 20 mins of all the days scheduled through CRON. But i need to modify the CRON entry such that it should run from 00:00 AM to 18:00 and again from 22:00 to 23:59 on Saturday. Remaning days, it should run as usual in every 20 mins. Could... (1 Reply)
Discussion started by: rjanardhan83
1 Replies

7. Shell Programming and Scripting

unix manual needed :)

hi guys... am new 2 dis unix world... am in need of a unix manual... cud sum1 pls post sum links 2 download it?>?>? :confused: Danks in advance... ;) ;) ;) (1 Reply)
Discussion started by: sundar_shankar
1 Replies

8. Shell Programming and Scripting

check in unix shell script so that no one is able to run the script manually

I want to create an automated script which is called by another maually executed script. The condition is that the no one should be able to manually execute the automated script. The automated script can be on the same machine or it can be on a remote machine. Can any one suggest a check in the... (1 Reply)
Discussion started by: adi_bang76
1 Replies

9. OS X (Apple)

UNIX Commands / Manual

Hi Does anyone know were to go (web link please?) to learn the BACIS of UNIX in OS X, I would like to know a little more about unix (for the apple) but seem to get lost in all the wen sites, and idealy find a site where i could download a manual for the unix shell in OS X. Any ideas? (4 Replies)
Discussion started by: adrianmoore
4 Replies

10. News, Links, Events and Announcements

Unix Manual (man-page) pages in HTML

LINK: Unix Manual (man page) pages in HTML http://www.rt.com/man/ : More then 100 Commands found on a Unix system mannual pages can be obtained/refered here. Good Link.. (1 Reply)
Discussion started by: killerserv
1 Replies

Featured Tech Videos