#! /bin/bash
head -5 $1
echo "remove $1 ?"
read answer
if
then
echo invalid answer
elif
rm $1
echo "$1 is deleted"
elif
then
echo file is not deleted
else
echo "invalid answer"
fi
What i really want this to do is to ask to delete the file or not..it says something wrong... (1 Reply)
#! /bin/bash
USAGE=" | ]
if
then
echo "$USAGE"
exit 1
fi
while getopts lb: OPTION
do
case $(OPTION)in
a) echo Hi there!
exit 2;;
b) echo hello
o) OARG=$OPTARG;;
\?)echo "$USAGE" ;;
exit 2;;
esac
done
shift `expr... (1 Reply)
can anyone tell me why this code doesn't work how its supposed to, its the hangman game but it doesn't play how its supposed to
#!/bin/bash
NoAttempts="0"
livesgiven="5"
LivesRemain=$livesgiven
LettersAttempted=""
wordfile=words
numwords=0
function menu()
{
clear
cat << menu... (1 Reply)
Code:
#!/usr/bin/perl -w
use strict;
use warnings;
#Clears Screen
$CLEAR=`clear`;
print $CLEAR;
i get the below error:
Global symbol "$CLEAR" requires explicit package name at ./mutmg.pl line 6.
Global symbol "$CLEAR" requires explicit package name at ./mutmg.pl line 7. (1 Reply)
Hi all,
I have been given a task to search for strings in a file that is encoded. I need to display the file name only when all the 3 strings which i provide are present in the file name.
i first try to get a list of files according from the directory according to the value passed in argument... (0 Replies)
I am trying to find a value within a properties file and declare it into a variable. Script below. I want the "memSize" to be the branch from the properties file. Right now it always tells me "Not found" What am I doing wrong?
#!/bin/sh
memsize ='';
memSize=`sed '/^\#/d'... (8 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
ls -ld htdocs
drwxr-x--- 3 root root 8192 2006-11-19 10:41 htdocs
How would a host administrator... (1 Reply)
hi whats wrong in below??
CHECK=M10;
if ;
then
echo "hello hi";
else
echo "how are u hello hi";
fi
I am getting error as
./test.sh: line 2: '
./test.sh: line 2: M10: command not found
./test.sh: line 2: M10: command not found
./test.sh: line 2: M10: command not found (8 Replies)
Discussion started by: skyineyes
8 Replies
LEARN ABOUT DEBIAN
exosip2_registration
eXosip2 REGISTER and Registration Management(3) libeXosip2 eXosip2 REGISTER and Registration Management(3)NAME
eXosip2 REGISTER and Registration Management -
Functions
int eXosip_register_build_initial_register (const char *from, const char *proxy, const char *contact, int expires, osip_message_t **reg)
int eXosip_register_build_initial_register_withqvalue (const char *from, const char *proxy, const char *contact, int expires, const char
*qvalue, osip_message_t **reg)
int eXosip_register_build_register (int rid, int expires, osip_message_t **reg)
int eXosip_register_send_register (int rid, osip_message_t *reg)
int eXosip_register_remove (int rid)
Detailed DescriptionFunction Documentation
int eXosip_register_build_initial_register (const char *from, const char *proxy, const char *contact, intexpires, osip_message_t **reg)
Build initial REGISTER request.
Parameters:
from SIP url for caller.
proxy Proxy used for registration.
contact Contact address. (optional)
expires The expires value for registration.
reg The SIP request to build.
int eXosip_register_build_initial_register_withqvalue (const char *from, const char *proxy, const char *contact, intexpires, const char
*qvalue, osip_message_t **reg)
Build initial REGISTER request with qvalue for contact.
Parameters:
from SIP url for caller.
proxy Proxy used for registration.
contact Contact address. (optional)
expires The expires value for registration.
qvalue The qvalue value for contact header.
reg The SIP request to build.
int eXosip_register_build_register (intrid, intexpires, osip_message_t **reg)
Build a new REGISTER request for an existing registration.
Parameters:
rid A unique identifier for the registration context
expires The expires value for registration.
reg The SIP request to build.
int eXosip_register_send_register (intrid, osip_message_t *reg)
Send a REGISTER request for an existing registration.
Parameters:
rid A unique identifier for the registration context
reg The SIP request to build. (NULL for default REGISTER)
int eXosip_register_remove (intrid)
Remove existing registration without sending REGISTER.
Parameters:
rid A unique identifier for the registration context
Author
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 3.1.0 Sun Jun 24 2012 eXosip2 REGISTER and Registration Management(3)