04-05-2012
Yes correct..Can I have the complete command or a script which solve my purpose. Cheers!!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Say I write something like the following:
var1=1
var2=2
for int in 1 2
do
echo "\$var$int"
done
I want the output to be:
1
2
Instead I get something like:
$var1
$var2 (2 Replies)
Discussion started by: Awanka
2 Replies
2. Shell Programming and Scripting
I am passing a file name as a parameter to shell script
the parameter is getfile.txt.gpg
how do i process this parameter to get name like getfile.txt only and eleminate the .gpg text??
Thanks in advance (2 Replies)
Discussion started by: rudoraj
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I will pass 3 parameters for a script.I have to check the file name and create a new file name with time stamp.
the parameters which i'm passing are
/dir/stg/filename.txt
/dir/path/head.txt
/dir/path/tail.txt
Now i have to check filename like :
if it is a.txt i have to create... (2 Replies)
Discussion started by: ammu
2 Replies
4. Shell Programming and Scripting
hi unix guru's..................:confused:
question is posted in the #3 permalink shown below. (3 Replies)
Discussion started by: yahoo!
3 Replies
5. Shell Programming and Scripting
Hi,
I am executing a shell script which takes a string as a parameter.
The scipt should validate the string and create the directoy with the name of specfied string.
The following is the specified command and its parameter.
test.sh "abc abc"
The shell script is not able to identify... (4 Replies)
Discussion started by: raghu.amilineni
4 Replies
6. Shell Programming and Scripting
i got a file called Pass1, and then i need to passed a number to my script with the '-p pass_mark' option.
Example type
Pass1 -p 18
to pass 18 to my script for comparing things, so how can i do it? (7 Replies)
Discussion started by: mingming88
7 Replies
7. UNIX for Dummies Questions & Answers
I have written a function that fills an array and another function where if a parameter is supplied it will jump to that part of the array and cat it to the screen.
I need to put in some checks to make sure the parameter supplied is firstly a number and then not a number great than the length of... (2 Replies)
Discussion started by: magnia
2 Replies
8. Shell Programming and Scripting
Hello Everyone,
I have been trying to complete a shell script where, I need to increment the date depending on the file (depending on the date) availability on the remote server.
i.e.
Basically, I will be passing a counter (like parameter 1 or 2 or 3 or 4).
First I will check for the... (1 Reply)
Discussion started by: filter
1 Replies
9. Shell Programming and Scripting
i am passing input parameter 'one_two' to the script , the script output should display the result as below
one_1two
one_2two
one_3two
if
then
echo " Usage : <$0> <DATABASE> "
exit 0
else
for DB in 1 2 3
do
DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}`
done
fi (5 Replies)
Discussion started by: only4satish
5 Replies
10. Shell Programming and Scripting
Hi,
I have the following files.
->cat scr.sh
export TMP_DIR=/home/user/folder1
export TMP_DIR_2=/home/user/folder2
while read line
do
cat "$line"
done<file_list.dat
------------------------
-> cat file_list.dat
$TMP_DIR/file1.txt
$TMP_DIR_2/file2.txt
---------------------------
-> cat... (6 Replies)
Discussion started by: barath
6 Replies
LEARN ABOUT DEBIAN
udplsi
UDPLSI(1) LTP executables UDPLSI(1)
NAME
udplsi - UDP-based LTP link service input task
SYNOPSIS
udplsi {local_hostname | @}[:local_port_nbr]
DESCRIPTION
udplsi is a background "daemon" task that receives UDP datagrams via a UDP socket bound to local_hostname and local_port_nbr, extracts LTP
segments from those datagrams, and passes them to the local LTP engine. Host name "@" signifies that the host name returned by hostname(1)
is to be used as the socket's host name. If not specified, port number defaults to 1113.
The link service input task is spawned automatically by ltpadmin in response to the 's' command that starts operation of the LTP protocol;
the text of the command that is used to spawn the task must be provided as a parameter to the 's' command. The link service input task is
terminated by ltpadmin in response to an 'x' (STOP) command.
EXIT STATUS
0 udplsi terminated normally, for reasons noted in the ion.log file. If this termination was not commanded, investigate and solve the
problem identified in the log file and use ltpadmin to restart udplsi.
1 udplsi terminated abnormally, for reasons noted in the ion.log file. Investigate and solve the problem identified in the log file,
then use ltpadmin to restart udplsi.
FILES
No configuration files are needed.
ENVIRONMENT
No environment variables apply.
DIAGNOSTICS
The following diagnostics may be issued to the ion.log log file:
udplsi can't initialize LTP.
ltpadmin has not yet initialized LTP protocol operations.
LSI task is already started.
Redundant initiation of udplsi.
LSI can't open UDP socket
Operating system error. Check errtext, correct problem, and restart udplsi.
LSI can't initialize socket
Operating system error. Check errtext, correct problem, and restart udplsi.
LSI can't create receiver thread
Operating system error. Check errtext, correct problem, and restart udplsi.
BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>
SEE ALSO
ltpadmin(1), udplso(1), owltsim(1)
perl v5.14.2 2012-05-25 UDPLSI(1)