01-15-2016
The text file needs to be chmod to executable to run it as suggested.
@otheus you have suggested the all the best possible solutions.
One thing to remember you should know what are the commands doing. example a telnet/ssh or ftp command will have your script (text file) to loose control over the script unless these exit. You need these special commands to be handled specially with 'expect' or with special pipes.
Also if you want them to run as batch not one line at a time. I am assuming you need next command to start along with previous command. Just add a '&' to command. This will run in background.
Do make sure you read up about background commands before going further. You could seriously damage the host if you have multiple commands running in background.
Paste the text file you want make it run as script. That could give more details on how to handle things.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a SQL script that requires values from the environment in order to execute. I found a way to get the desired results but my process is a little choppy. Any suggestions on how to clean this up would be greatly appreciated.
SQL Script
-------------
select a, b, c
from d
where a =... (1 Reply)
Discussion started by: bmopal
1 Replies
2. Red Hat
Hi Folks,
I have a small doubt, the binary commands under /bin and /sbin as well as other path binary files, if you peek deep into that, you can find the difference in the way of normal perl programming and some commands will be like binary files. how are the commands executing like the... (3 Replies)
Discussion started by: gsiva
3 Replies
3. Shell Programming and Scripting
Hi,
I want to run these two commands one after the other.
awk 'BEGIN {OFS="\t"} {print $2}'
sort -u
rather than typing awk 'BEGIN {OFS="\t"} {print $2}' file1 > file2, then sort -u file2 > file3. Is it possible to run both commands on file1 then get output file3?
Its kinda hard for... (5 Replies)
Discussion started by: kylle345
5 Replies
4. Shell Programming and Scripting
I need to execute a command to run my script several times with varying parameters
perl ex.pl -b 130198 -e 130884 -c plot plot.txt 1_plot.txt
perl ex.pl -b 1345 -e 1308 -c plot plot.txt 2_plot.txt
perl ex.pl -b 1345567 -e 130898 -c plot plot.txt 3_plot.txt
.
.
.
100's of excutions
... (2 Replies)
Discussion started by: Lucky Ali
2 Replies
5. Shell Programming and Scripting
Hi!
I am trying to create a script to reorder the contents of a text file. Below is the text file initially, followed by how I would like it reordered:
File initially:
---
Initial lines with text and/or numbers
Initial lines with text and/or numbers
Initial lines with text and/or numbers... (11 Replies)
Discussion started by: gwr
11 Replies
6. Shell Programming and Scripting
Hi,
I have a question here. Please suggest.
I have a file which has some unix commands to be executed through shell scripting. The number of commands will be different every time based on some external instructions i received. I manually keep the instuctions in this file.
i need to execute... (1 Reply)
Discussion started by: rbalaj16
1 Replies
7. Shell Programming and Scripting
hi,
I am trying to call a text file in a shell script.
The text file has the variable defind like..
export vari_namee=/path/give/here
-------------------------------------------------
I am able to execute the shell script through putty.
But when I try to execute with informatica... (1 Reply)
Discussion started by: sunil0106
1 Replies
8. Shell Programming and Scripting
Hi
Am having file.ksh as below
wc -l file1.txt
wc -l file2.txt
wc -l file3.txt
wc -l file4.txt
i want all the commands in this file to execute in same time
please help
Thanks in advance (1 Reply)
Discussion started by: ragu.selvaraj
1 Replies
9. Linux
Hello,
I have standard loop
while read -r info; do
command $info
done < info
in info text file I have multiple commands each on line that I want to execute. When I used them in console they worked, but not with this loop.
This is one of the commands in info file:
grep... (4 Replies)
Discussion started by: adamlevine
4 Replies
10. Shell Programming and Scripting
I have a script that checks if the script has been ran with sudo.
If the script is not ran as sudo, the current script is being executed with exec sudo bash.
You are asked for a password, you type in the password, success. Everything is perfect - the commands inside the script are ran as sudo.... (1 Reply)
Discussion started by: boqsc
1 Replies
LEARN ABOUT OSX
docidx_lang_syntax
docidx_lang_syntax(n) Documentation tools docidx_lang_syntax(n)
__________________________________________________________________________________________________________________________________________________
NAME
docidx_lang_syntax - docidx language syntax
DESCRIPTION
This document contains the formal specification of the syntax of the docidx markup language, version 1 in Backus-Naur-Form. This document
is intended to be a reference, complementing the docidx language command reference. A beginner should read the much more informally writ-
ten docidx language introduction first before trying to understand either this document or the command reference.
FUNDAMENTALS
In the broadest terms possible the docidx markup language is like SGML and similar languages. A document written in this language consists
primarily of markup commands, with text embedded into it at some places.
Each markup command is a just Tcl command surrounded by a matching pair of [ and ]. Which commands are available, and their arguments, i.e.
syntax is specified in the docidx language command reference.
In this document we specify first the lexeme, and then the syntax, i.e. how we can mix text and markup commands with each other.
LEXICAL DEFINITIONS
In the syntax rules listed in the next section
[1] <TEXT> stands for all text except markup commands.
[2] Any XXX stands for the markup command [xxx] including its arguments. Each markup command is a Tcl command surrounded by a matching
pair of [ and ]. Inside of these delimiters the usual rules for a Tcl command apply with regard to word quotation, nested commands,
continuation lines, etc.
[3] <WHITE> stands for all text consisting only of spaces, newlines, tabulators and the comment markup command.
SYNTAX
The rules listed here specify only the syntax of docidx documents. The lexical level of the language was covered in the previous section.
Regarding the syntax of the (E)BNF itself
[1] The construct { X } stands for zero or more occurrences of X.
[2] The construct [ X ] stands for zero or one occurrence of X.
The syntax:
index = defs
INDEX_BEGIN
[ contents ]
INDEX_END
{ <WHITE> }
defs = { INCLUDE | VSET | <WHITE> }
contents = keyword { keyword }
keyword = defs KEY ref { ref }
ref = MANPAGE | URL | defs
At last a rule we were unable to capture in the EBNF syntax, as it is about the arguments of the markup commands, something which is not
modeled here.
[1] The arguments of all markup commands have to be plain text, and/or text markup commands, i.e. one of
[1] lb,
[2] rb, or
[3] vset (1-argument form).
BUGS, IDEAS, FEEDBACK
This document, will undoubtedly contain bugs and other problems. Please report such in the category doctools of the Tcllib SF Trackers
[http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have.
SEE ALSO
docidx_intro, docidx_lang_cmdref, docidx_lang_faq, docidx_lang_intro
KEYWORDS
docidx commands, docidx language, docidx markup, docidx syntax, markup, semantic markup
CATEGORY
Documentation tools
COPYRIGHT
Copyright (c) 2007-2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
doctools 1.0 docidx_lang_syntax(n)