Hi,
I search all post...and no soluation about..if i would like to run a sql statement and output the result to txt file.
for example,
i usually run "sql" to logon the database and run select statement. Then I need to copy the output into the result.txt. Can I run the script to do this... (7 Replies)
Hi, Iam new to unix. I have a variable length file seperated by delmitter "~", I need to change it to fixed length file including space instead of delimitter. To be clear.....
Input file:
Row-id name
123~name1
124~name2
125~name3
The above input file is a variable length file... (2 Replies)
OS : Linux 2.6.9-67 - Red Hat Enterprise Linux ES release 4
Looking for a script that reads the following log files that gets generated everynight between 2 - 5am
Master_App_20090717.log
Master_App1_20090717.log
Master_App2_20090717.log
Master_App3_20090717.log... (2 Replies)
Does anybody know any alternative way to save output result of a program into another new file?
I got try the command below:
program_used input_file > new_output_file
program_used input_file >> new_output_file
Unfortunately, both the ">" and ">>" is not work at this case to save the output... (6 Replies)
Hello Guys,
This message is somewhat relates with last thread. But I need to re-write thing. I start over a little. I am stuck now and need your help.
Here is my script-
#! /bin/ksh
export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2
/opt/oracle/app/oracle/product/9.2/bin/sqlplus -s... (5 Replies)
Good morning everybody,
Beeing an absolute newbie in shell scripting I would like to look for some help here.
I would like to read an external text file and format the data and write it to an output file.
What I was trying to do was to display the result (this worked).
But now I... (1 Reply)
Dear All
I have a script file like the following:
.....
.....
Variable_1 = 888
Variable_2 = 999
.....
MyExternalProgram Myfile
.....
The line MyExternalProgram Myfile will generate some number, Say 777
Now I hope I can output the result of above codes to a text file,... (2 Replies)
Hi I would appreciate your help with this.
I have a output file from a command. It is broken based on initial of the users. Exmaple of iitials MN & SS. Under each section there is information pertaining to the user however each section can have different number of lines. MY challenge is to ... (5 Replies)
Hi ,
I'm trying to list the files and output is written to a file. But when I execute the command , the output file is being listed. How to exclude it ?
/tmp
file1.txt
file2.txt
ls -ltr |grep -v '-' | awk print {$9, $5} > output.txt
cat output.txt
file1.txt
file2.txt
output.txt (8 Replies)
Hi Gurus,
I run command grep ABC file1 > file2 against below file. I got all ABC_xxx in one line in file2. I expect to get multiple lines in file2. If I print result in screen, the result is expected.
thanks in advance
My os is SunOS 5.10 Generic_150400-64 sun4v sparc sun4v
ABC_123
XXXXX... (2 Replies)
Discussion started by: green_k
2 Replies
LEARN ABOUT DEBIAN
ns_adp_abort
ns_adp_exception(3aolserver) AOLserver Built-In Commands ns_adp_exception(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
ns_adp_abort, ns_adp_break, ns_adp_exception, ns_adp_return - ADP exception handling
SYNOPSIS
ns_adp_abort ?result?
ns_adp_break ?result?
ns_adp_exception ?varName?
ns_adp_return ?result?
_________________________________________________________________DESCRIPTION
These commands enable early return and interrupt of an ADP execution. Internally, the exception routines sets a flag and return TCL_ERROR
to begin unwinding the current Tcl call stack and return control to the ADP evaluation engine. It is possible for an enclosing catch com-
mand to catch the exception and stop Tcl from returning control to ADP. The ns_adp_exception command can be used to test for this condi-
tion.
ns_adp_abort ?result?
This command stops ADP processing, raising an execution and unwinding the stack to the top level as an error condition. The request
handling code which invokes the first ADP file will normallly generate an error message in this case, ignoring the contents of the
output buffer, if any. Note that the exeception can be caught by a catch command in script block which executes ns_adp_abort. How-
ever, when that block returns control to the ADP execution engine, the stack will be continue to be unwound. The optional result
argument, if present, will be used to set the Tcl interpreter result string.
ns_adp_break ?result?
This command stops execution of ADP and unwinds the ADP call stack. Unlike ns_adp_abort, the request handling code will generate a
normal HTTP response with any contents of the output buffer. The optional result argument, if present, will be used to set the Tcl
interpreter result string.
ns_adp_exception ?varName?
This command returns a boolean value if an exception has been raised. The optional varName provides the name of a variable to store
one of ok, break, abort, or return to indicate the type of exception raised.
ns_adp_return ?result?
This function halts processing of the current ADP and sends any pending output (from ns_adp_puts or static HTML) up to the point
where it was called to the browser. Nothing in the current ADP is output or executed after it is called. The return_value, if spec-
ified, becomes the return value of the ADP. Note that this function returns only one level up the call stack. By contrast,
ns_adp_abort and ns_adp_break will return all the way up the call stack. ns_adp_return is typically used from an ADP included by
another ADP, to stop processing of the inner ADP while allowing the calling ADP to continue. The optional result argument, if
present, will be used to set the Tcl interpreter result string.
EXAMPLE
The following example demonstrates halting execution of the ADP after returning a complete response with one of the ns_return style com-
mands:
<%
if !$authorized {
ns_returnunauthorized; # Send complete response.
ns_adp_abort; # Execution stops here.
}
%>.
SEE ALSO
ns_adp(n)
KEYWORDS
ADP, dynamic pages, exception
AOLserver 4.5 ns_adp_exception(3aolserver)