Sponsored Content
Full Discussion: script execute or no execute
Top Forums Shell Programming and Scripting script execute or no execute Post 302122407 by earnstaf on Wednesday 20th of June 2007 11:28:17 AM
Old 06-20-2007
Just for fun .. anyone wanna tackle this? Smilie

Quote:
or hello. I have script that is executed under a task of the CronJOb of the UNIX, I have UNIX version 11, my script has a cycle which txt soon each one of those archives reads archives must happen through a stored procedure which I have stored it in my data base oracle 10g, which in script I call to this procedure with execute NAME Of the PROCEdimiento doing the routine to enter his - oracle and entering sqlplus, but have the situation that some archives processes and others and I do not need to control within script that if the file process satisfacotriamente within the procedure is not problem but if IT WAS NOT DONE me the envie for another folder and what I have not managed to do is to make this condition for knowing when he was satisfacotorio or to not execution it of a process. The way as I realize if it has processed or a file is not by means of var/mail/root manually. thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to execute shell Script?

I am new to UNIX , Can any one let me know how to execute shell script (i.e which command I have to use for the same). Any help would be appreciated. Thanks siva mymvs999@yahoo.com (3 Replies)
Discussion started by: siva
3 Replies

2. UNIX for Dummies Questions & Answers

execute a script

Okay, a more basic question will be hard to find, but I'm a first time Unix user and I can't get a script starting. I'm the owner of te script, I can change te script but when I want to execute it, it can't be found???? $ ls -l gives: -rwxr-x--x db_call_checkup $ db_call_checkup gives:... (2 Replies)
Discussion started by: tinydejong
2 Replies

3. UNIX for Dummies Questions & Answers

Execute Shell Script

Hi all, I am begginer of UNIX . I dont know if i have a script written in korn shell with .ksh extention . If i want to execute that how can i do that? Can anybody suggest the best book to learn korn shell scripting. Thanks sam71 (1 Reply)
Discussion started by: sam71
1 Replies

4. Shell Programming and Scripting

Can't execute a script

I have a script with a .sh extension. When I try to run it from the command line using: test.sh ,I get this message: ksh: test.sh: not found How do I run this? (3 Replies)
Discussion started by: ssmiths001
3 Replies

5. Shell Programming and Scripting

Need to execute 2 scripts, wait, execute 2 more wait, till end of file

:cool: I need to execute a shell script to do the following: cat a file run two back ground processes using the first two values from the file wait till those background processes finish run two more background processes using the next two values from the file wait till those background... (1 Reply)
Discussion started by: halo98
1 Replies

6. Shell Programming and Scripting

execute script

Hi everybody: I would like to know how I can execute a script which to execute we have to follow different steps. I have did that this script needs some users features. These features are introduced from screem, but ussually these are equal. for this reason I would to to know if it is possible... (1 Reply)
Discussion started by: tonet
1 Replies

7. Shell Programming and Scripting

not able to execute script

hi, I have 2 questions Ques1.) I have one script(profile.ksh) and I execting it by # ./profile.ksh ./profile.ksh: bad substitution and when I am using ksh profile.ksh ----it is running. but other scripts are running fine. So can any1 tell me what is wrong with it :confused: ... (5 Replies)
Discussion started by: smartgupta
5 Replies

8. Shell Programming and Scripting

not able to execute shell script

HI, bash-2.05# more mysqlstoporaclestart.sh #!/bin/sh mysqladmin -u root -pengineer shutdown su - oracle -c "bash /export/home/oracle/oracle.sh" bash-2.05# more /export/home/oracle/oracle.sh /oracle/bin/sqlplus "/as sysdba"<< EOF startup nomount... (2 Replies)
Discussion started by: prakash.gr
2 Replies

9. Shell Programming and Scripting

To execute the same script in another machine

We have a few machines which share the same directory. How can I execute the same script under that directory in different machine while I am using mine? (1 Reply)
Discussion started by: jiao
1 Replies

10. Shell Programming and Scripting

Need help to execute a script

Hi , I wrote below code to do filename change. I have a file named TEST2013_09_18_XX_XX_XX.csv and I want it to be TEST2013_09_17_XX_XX_XX.csv. i.e of last date But when i am executing my script I am not getting expected output. STAMP=`TZ=BST+24 date +%Y_%m_%d` find /path of... (1 Reply)
Discussion started by: sv0081493
1 Replies
uplevel(n)						       Tcl Built-In Commands							uplevel(n)

__________________________________________________________________________________________________________________________________________________

NAME
uplevel - Execute a script in a different stack frame SYNOPSIS
uplevel ?level? arg ?arg ...? _________________________________________________________________ DESCRIPTION
All of the arg arguments are concatenated as if they had been passed to concat; the result is then evaluated in the variable context indi- cated by level. Uplevel returns the result of that evaluation. If level is an integer then it gives a distance (up the procedure calling stack) to move before executing the command. If level consists of # followed by a number then the number gives an absolute level number. If level is omitted then it defaults to 1. Level cannot be defaulted if the first command argument starts with a digit or #. For example, suppose that procedure a was invoked from top-level, and that it called b, and that b called c. Suppose that c invokes the uplevel command. If level is 1 or #2 or omitted, then the command will be executed in the variable context of b. If level is 2 or #1 then the command will be executed in the variable context of a. If level is 3 or #0 then the command will be executed at top-level (only global variables will be visible). The uplevel command causes the invoking procedure to disappear from the procedure calling stack while the command is being executed. In the above example, suppose c invokes the command uplevel 1 {set x 43; d} where d is another Tcl procedure. The set command will modify the variable x in b's context, and d will execute at level 3, as if called from b. If it in turn executes the command uplevel {set x 42} then the set command will modify the same variable x in b's context: the procedure c does not appear to be on the call stack when d is executing. The info level command may be used to obtain the level of the current procedure. Uplevel makes it possible to implement new control constructs as Tcl procedures (for example, uplevel could be used to implement the while construct as a Tcl procedure). The namespace eval and apply commands offer other ways (besides procedure calls) that the Tcl naming context can change. They add a call frame to the stack to represent the namespace context. This means each namespace eval command counts as another call level for uplevel and upvar commands. For example, info level 1 will return a list describing a command that is either the outermost procedure call or the out- ermost namespace eval command. Also, uplevel #0 evaluates a script at top-level in the outermost namespace (the global namespace). EXAMPLE
As stated above, the uplevel command is useful for creating new control constructs. This example shows how (without error handling) it can be used to create a do command that is the counterpart of while except for always performing the test after running the loop body: proc do {body while condition} { if {$while ne "while"} { error "required word missing" } set conditionCmd [list expr $condition] while {1} { uplevel 1 $body if {![uplevel 1 $conditionCmd]} { break } } } SEE ALSO
apply(n), namespace(n), upvar(n) KEYWORDS
context, level, namespace, stack frame, variables Tcl uplevel(n)
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy