09-02-2009
@Corona688: thank you for your answer, but those specific lines were actually taken from one of the posts on this forum, but your suggestion seems worthwhile and is actually rather quick.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
What is the command for search the program name from the entire directory (all directories in the unix box, means including sub directories...) (2 Replies)
Discussion started by: gksenthilkumar
2 Replies
2. Shell Programming and Scripting
I'm trying to get a case statement to start over if an undefined option is selected... But I am ata loss on how to actually do it.
Here is a quick example of what I have.
Echo "1) do this/n
2) Do that/n
3) Quit/n
Make a selection/n"
Read answer
Case answer in
1) Dothid;;
2) Dothat;;... (3 Replies)
Discussion started by: trey85stang
3 Replies
3. Shell Programming and Scripting
Is there a command (like ls -l) to get the file time stamp including seconds? The ls -l gives only the HH:MM, No SS
I don't have a C compiler to call stat()
I don't a command like stat too.
Please help. (8 Replies)
Discussion started by: firdousamir
8 Replies
4. Shell Programming and Scripting
Hi,
Is it possible for me to include the results from a command in the subject line? What I am looking to do is get the file count and include it into the subject line as well as the list of files in the body.
Example Subject line: Currently 25 files in directory
My Code:
#!/bin/ksh
cd... (2 Replies)
Discussion started by: ozifer
2 Replies
5. Shell Programming and Scripting
I am writing a bash script that asks the user for input and I need it to repeat until the user selects quit.. I dont know how to write the loop for it I searched all over but i still do not get it.. if anyone could help with this it would be greatly apprciated here is my script so far:
#!... (2 Replies)
Discussion started by: Emin_Em
2 Replies
6. Shell Programming and Scripting
hello,
I would like to do exit at the end ie list all errors before exiting
How to put the token exit in a variable with a loop ?
Thanks
function g1 () {
case "$1" in
(-0-0 | -0-1 | -0-2 | -0-3 | -1-0 | -1-1 | -1-2 | -1-3)
# nothing, OK !
;;
(*)
echo 'Fatal, $1 = '"'$1'"', Date... (9 Replies)
Discussion started by: amazigh42
9 Replies
7. Shell Programming and Scripting
I have the following awk statement that computes rank of a column and sorts it based on rank.
sort -k6 -n file | awk '$6 != prev { rank = NR }{ print $1, $6, rank ; prev = $6 }'
I need the above code to accept variables for the column in the sort statement ("-k6").
Is there a better... (6 Replies)
Discussion started by: ncwxpanther
6 Replies
8. Linux
How can I merge the move statements with the "FOR" loop to do a move of a file right after it zips it and not wait until all of the files are zipped to move all outisde the for loop.
Here is my current code:
for file in `ls -rt $svdumpdir/* | grep -v '.gz$' | grep '.gtt$' `
do
echo... (8 Replies)
Discussion started by: mrn6430
8 Replies
9. Shell Programming and Scripting
Hi All,
select app from the menu:
ABC
DEF
GHI
JKL
ALL # ALL will select all the apps in the menu
echo "Enter your option"
read option;
if
then
<execute the below command>
elif # option is the 1 selection from menu...not ALL
<execute the below command>
else (14 Replies)
Discussion started by: Devaraj A
14 Replies
10. UNIX for Beginners Questions & Answers
Hello All,
I want to print data in between two lines in a file sample.txt through more or cat command on the screen. For that I am using below sed command to give the BEGIN and END text.
Content of sample.txt
server01:~ # cat /proc/mdstat
Hello this is a text message 1
Hello this is a... (5 Replies)
Discussion started by: Xtreme
5 Replies
LEARN ABOUT DEBIAN
exosip2_options
eXosip2 OPTIONS and UA capabilities Management(3) libeXosip2 eXosip2 OPTIONS and UA capabilities Management(3)
NAME
eXosip2 OPTIONS and UA capabilities Management -
Functions
int eXosip_options_build_request (osip_message_t **options, const char *to, const char *from, const char *route)
int eXosip_options_send_request (osip_message_t *options)
int eXosip_options_build_answer (int tid, int status, osip_message_t **answer)
int eXosip_options_send_answer (int tid, int status, osip_message_t *answer)
Detailed Description
Function Documentation
int eXosip_options_build_request (osip_message_t **options, const char *to, const char *from, const char *route)
Build a default OPTIONS message.
Parameters:
options Pointer for the SIP request to build.
to SIP url for callee.
from SIP url for caller.
route Route header for INVITE. (optional)
int eXosip_options_send_request (osip_message_t *options)
Send an OPTIONS request.
Parameters:
options SIP OPTIONS message to send.
int eXosip_options_build_answer (inttid, intstatus, osip_message_t **answer)
Build answer for an OPTIONS request.
Parameters:
tid id of OPTIONS transaction.
status status for SIP answer to build.
answer The SIP answer to build.
int eXosip_options_send_answer (inttid, intstatus, osip_message_t *answer)
Send answer for an OPTIONS request.
Parameters:
tid id of OPTIONS transaction.
status status for SIP answer to send.
answer The SIP answer to send. (default will be sent if NULL)
Author
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 3.1.0 Sun Jun 24 2012 eXosip2 OPTIONS and UA capabilities Management(3)