09-08-2010
Quote:
Originally Posted by
amio
I want the output of system("sh sample.sh") in the application file itself.
It should already be outputting to the same terminal as your application. Where else do you want it?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
this is my test file :
DELETE FROM TABLE
WHERE ID_INTERNAL = :TABLE.ID-INTERNAL, ID-INTERNAL-CRAZY
ID-INTERNAL-OPEN
ID-INTERNAL
/ID-INTERNAL/
I want all occurences of ID-INTERNAL replaced with a one, if ID-INTERNAL has and dash afer it , dont replace it example:... (6 Replies)
Discussion started by: seaten
6 Replies
2. Programming
Hey everyone,
I've been trying to use the system(cmd) call in C to tar multiple files together.
When i do so i specify the absolute paths of the tar file as well as the files to be included in the tar file.
Eg: system("tar -cf /tmp/example.tar /mnt/john/1.xml");
system("tar -uf... (5 Replies)
Discussion started by: vsanjit
5 Replies
3. Shell Programming and Scripting
So, I have this script. It reads a CSV file that has a mixture of object names with IP addresses (parsing out that part I have working), and object names which have a DNS name. I want to be able to run a "dig +short" based off of the name given to me in the line of the awk script, and then deal... (6 Replies)
Discussion started by: mikesimone
6 Replies
4. Shell Programming and Scripting
Hi,
Can you assist me in how to redirect the output of oracle stored procedure from unix script?
Something similar to what i did for sybase
isql -U$MYDBLOG -D$MYDBNAME -S$MYDBSVR -P$MYDBPWD -o$MYFILE<< %%
proc_my_test 8
go
%%
Thanks in advance - jak (0 Replies)
Discussion started by: jakSun8
0 Replies
5. Shell Programming and Scripting
Hi,
I have ascript which drops a mail with the jobs status.
here is the script:
#!/bin/ksh
mypath=/home/gaddamja
flashlogpath=/sbcimp/dyn/data/flash/log
cd $mypath
v1=`ls -lrt | grep -i checkFilesForAmber_EUR1. |tail -1 | awk '{print $8}'`
v2=`cat $v1`
cd $flashlogpath
... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies
6. Shell Programming and Scripting
Hello experts,
I have a perl script which looks for the ARGV and then loads the data as per it.
Example.
#Checking the server to connect
if ($ARGV eq 'QA')
{
$ENV{"ORACLE_HOME"} = "/oracle/product/11.2.0";
$ENV{"PATH"} = "$ENV{'PATH'}:/oracle/product/11.2.0/bin";
... (1 Reply)
Discussion started by: msrahman
1 Replies
7. Shell Programming and Scripting
Hi All,
I am running the below shell script through cron and surprisingly it gives different output
$uname -a
Linux 2.6.18-194.3.1.7.3.el5xen #1 SMP Fri Jul 30 00:08:45 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
$ echo $SHELL
/bin/bash
shell script:
cat sar_cpu.sh
#!/bin/bash
... (10 Replies)
Discussion started by: a1_win
10 Replies
8. Shell Programming and Scripting
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
Discussion started by: sasikanthdba
4 Replies
9. Programming
to run most other scripts through a pipe, something similar to the following is usually enough:
cat script.sh | sh
cat perl.pl | perl -- "<arguments"
However, for javascript command line scripts, i cant seem to get this to work. Any ideas?
cat hull.js
#!/usr/bin/js
... (3 Replies)
Discussion started by: SkySmart
3 Replies
10. UNIX for Beginners Questions & Answers
I'm trying to create a shell script that takes a awk script that I wrote and a filename as an argument. I was able to get that done but I'm having trouble figuring out how to keep the header of the output at the top but sort the rest of the rows alphabetically. This is what I have now but it is... (1 Reply)
Discussion started by: Eric7giants
1 Replies
LEARN ABOUT DEBIAN
enhance
enhance(1) User Commands enhance(1)
NAME
enhance - enhanced command-line editing facilities
SYNOPSIS
enhance command [argument...]
DESCRIPTION
The enhance program provides enhanced command-line editing facilities to users of third party applications, to which one doesn't have any
source code. It does this by placing a pseudo-terminal between the application and the real terminal. It uses the tecla command-line edit-
ing library to read input from the real terminal, then forwards each just completed input line to the application via the pseudo-terminal.
All output from the application is forwarded back unchanged to the real terminal.
Whenever the application stops generating output for more than a tenth of a second, the enhance program treats the latest incomplete output
line as the prompt, and redisplays any incompleted input line that the user has typed after it. Note that the small delay, which is imper-
ceptible to the user, isn't necessary for correct operation of the program.It is just an optimization, designed to stop the input line from
being redisplayed so often that it slows down output.
Note that the user-level command-line editing facilities provided by the Tecla library are documented in the tecla(5) man page
DEFICIENCIES
The one major problem that hasn't been solved yet, is how to deal with applications that change whether typed input is echo'd by their con-
trolling terminal. For example, programs that ask for a password, such as ftp and telnet, temporarily tell their controlling terminal not
to echo what the user types. Since this request goes to the application side of the psuedo terminal, the enhance program has no way of
knowing that this has happened, and continues to echo typed input to its controlling terminal, while the user types their password.
Furthermore, before executing the host application, the enhance program initially sets the pseudo terminal to noecho mode, so that every-
thing that it sends to the program doesn't get redundantly echoed. If a program that switches to noecho mode explicitly restores
echoing afterwards, rather than restoring the terminal modes that were previously in force, then subsequently, every time that you enter a
new input line, a duplicate copy will be displayed on the next line.
FILES
/usr/lib/libtecla.so tecla library
~/.teclarc tecla personal customization file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
libtecla(3LIB), attributes(5), tecla(5)
SunOS 5.10 18 May 2004 enhance(1)