04-02-2015
Hi,
i dont know it is that what you want, but easy way to do it is:
you can try run everything in background with outputs to files (for exmpl first line> file all other lines >> file last line >> end) and then create loop to collect info from created files and if you want loop till all files got end
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I understand that in order to run basic unix commands I would normally type at the prompt, I would have to use the following format
system(ls -l);
or
exec(ls -l);
But when I actually try to use the command, the script fails to compile and keeps telling me there is an error with this line. ... (1 Reply)
Discussion started by: userix
1 Replies
2. Shell Programming and Scripting
Hi all,
In the directory '/temp/chris' the following files exist: chris.tar, chris.txt
What i am trying to do is to assign the 'chris.tar' filename in an argument through perl, in order to do that i use the system command:
$file=system("ls /temp/chris/*.tmp), but in the '$file' the exit... (2 Replies)
Discussion started by: chriss_58
2 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to run a script file with multiple commands that I would normally type into the command line. The commands are:
#!/bin/bash
diff Test1.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1.o0 > differences2
diff Test1a.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1a.o0 >> differences2... (1 Reply)
Discussion started by: knelson
1 Replies
4. Shell Programming and Scripting
Hi,
I would like to write a script with include more than 6 unix commands.
my script like below:
echo " script started"
ls -ld
bdf | grep "rama"
tail -10 log.txt
...
..
...
now, i want to run above unix commands one by one.
example:
first the ls -ld command will be... (3 Replies)
Discussion started by: koti_rama
3 Replies
5. Shell Programming and Scripting
Executing two unix commads via perl script one after another
e.g: make clean
bsub -i -q short make
have tried using exec but the second command doesnt executes (1 Reply)
Discussion started by: rajroshan
1 Replies
6. Programming
Hi All,
Is there anything wrong with below syntax?
qx {perldoc -v ModuleName.pm | grep -i Description }
BTW, this question is related to Perl.
Thanks. (3 Replies)
Discussion started by: jal_capri
3 Replies
7. Shell Programming and Scripting
Hi,
Is there a way in Korn Shell that I can run multiple commands stored as a semi-colon separated string, e.g.,
# vs="echo a; echo b;"
# $vs
a; echo b;
I want to be able to store commands in a variable, then run all of it once and pipe the whole output to another program without using... (2 Replies)
Discussion started by: svhyd
2 Replies
8. Shell Programming and Scripting
Hello,
I have a requirement to extract the value from multiple xml node and print out the values to new file to compare.
Would be done using either awk/perl or some unix script.
For example sample input file:
.....
.....
<factories xmi:type="resources.jdbc:DataSource"... (2 Replies)
Discussion started by: slbmind
2 Replies
9. Shell Programming and Scripting
RHEL 6.2/Bash shell
root user will be executing the below script. It switches to oracle user and expect to do the following things
A. Source the environment variables for BATGPRD Database (the file used for sourcing is shown below after the script)
B. Shutdown the DB from sqlplus -- The... (13 Replies)
Discussion started by: omega3
13 Replies
10. Shell Programming and Scripting
I am working on script. it reads a file which contains multiple lines
Ex;
curl --write-out %{http_code} --silent --output /dev/null http://hostname:port/input=1
curl --write-out %{http_code} --silent --output /dev/null http://hostname:port/input=2
curl --write-out %{http_code} --silent ... (2 Replies)
Discussion started by: oraclermanpt
2 Replies
LEARN ABOUT DEBIAN
coq-tex
COQ-TEX(1) General Commands Manual COQ-TEX(1)
NAME
coq-tex - Process Coq phrases embedded in LaTeX files
SYNOPSIS
coq-tex [ -o output-file ] [ -n line-width ] [ -image coq-image ] [ -w ] [ -v ] [ -sl ] [ -hrule ] [ -small ] input-file ...
DESCRIPTION
The coq-tex filter extracts Coq phrases embedded in LaTeX files, evaluates them, and insert the outcome of the evaluation after each
phrase.
Three LaTeX environments are provided to include Coq code in the input files:
coq_example
The phrases between egin{coq_example} and end{coq_example} are evaluated and copied into the output file. Each phrase is followed
by the response of the toplevel loop.
coq_example*
The phrases between egin{coq_example*} and end{coq_example*} are evaluated and copied into the output file. The responses of the
toplevel loop are discarded.
coq_eval
The phrases between egin{coq_eval} and end{coq_eval} are silently evaluated. They are not copied into the output file, and the
responses of the toplevel loop are discarded.
The resulting LaTeX code is stored in the file file.v.tex if the input file has a name of the form file.tex, otherwise the name of the out-
put file is the name of the input file with `.v.tex' appended.
The files produced by coq-tex can be directly processed by LaTeX. Both the Coq phrases and the toplevel output are typeset in typewriter
font.
OPTIONS
-o output-file
Specify the name of a file where the LaTeX output is to be stored. A dash `-' causes the LaTeX output to be printed on standard out-
put.
-n line-width
Set the line width. The default is 72 characters. The responses of the toplevel loop are folded if they are longer than the line
width. No folding is performed on the Coq input text.
-image coq-image
Cause the file coq-image to be executed to evaluate the Coq phrases. By default, this is the command coqtop without specifying any
path which is used to evaluate the Coq phrases.
-w Cause lines to be folded on a space character whenever possible, avoiding word cuts in the output. By default, folding occurs at the
line width, regardless of word cuts.
-v Verbose mode. Prints the Coq answers on the standard output. Useful to detect errors in Coq phrases.
-sl Slanted mode. The Coq answers are written in a slanted font.
-hrule Horizontal lines mode. The Coq parts are written between two horizontal lines.
-small Small font mode. The Coq parts are written in a smaller font.
CAVEATS
The egin... and end... phrases must sit on a line by themselves, with no characters before the backslash or after the closing brace.
Each Coq phrase must be terminated by `.' at the end of a line. Blank space is accepted between `.' and the newline, but any other charac-
ter will cause coq-tex to ignore the end of the phrase, resulting in an incorrect shuffling of the responses into the phrases. (The
responses ``lag behind''.)
SEE ALSO
coqtop (1).
29 March 1995 COQ-TEX(1)