05-12-2009
what is the result of this?
ls -A $variable
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I have a sftp account to another server, from which I need to find out all the files match "*.abc.*.xml" pattern in a certain directory. I have a batchfile as follows
cd /tmp
ls -l *.abc.*.xml
quit
then I run
output=`/usr/local/bin/sftp -B $batchfile $USER@$HOST`
the result looks... (2 Replies)
Discussion started by: mpang_
2 Replies
2. Shell Programming and Scripting
Well I have a 3000 lines result log file that contains all the machine data when it does the testing... It has 3 different section that i am intrsted in
1) starting with "20071126 11:11:11 Machine Header 1"
1000 lines...
"End machine header 1"
2) starting with "20071126 12:12:12 Machine... (5 Replies)
Discussion started by: vikas.iet
5 Replies
3. UNIX for Dummies Questions & Answers
hello
showrev -p | wc -l
returns:
381
What to do in case I want to have this output:
number of lines returned by showrev -p is: 381
thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
4. UNIX for Dummies Questions & Answers
Hi friends,
I am trying to FTP a file to a different server. My script is given below
command=`ftp -n $FTP_HOST <<END_SCRIPT
user $FTP_USER $FTP_PASSWD
lcd $TEMPFOLDER
cd $FTP_LOCATION
put $FILE
bye
END_SCRIPT`
result="$command"
echo "result is $result"
if ; then
echo... (6 Replies)
Discussion started by: MeeraNair
6 Replies
5. Shell Programming and Scripting
I wrote a shell script.
su user << EOF
some commands
result=$?
EOF
echo $result
Other program determined by $result
It outputs nothing.
How to pass the variable 'result' "inside su" to "outside su"? (5 Replies)
Discussion started by: uativan
5 Replies
6. UNIX for Dummies Questions & Answers
if ] (1 Reply)
Discussion started by: prathimahsc
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I have input file which is pipe delimited
A | 1
B | 2
c | 3I need output of displaying total number of lines in a file as last column.
A | 1 | 3-----total number of linesin file.
B | 2 | 3
c | 3 | 3 (9 Replies)
Discussion started by: pravinashwin
9 Replies
8. Shell Programming and Scripting
Hi,
I have following codes which looks ok:
$ string1="123456789 abc2"
$ string2="abc"
$ position_of_string2=`expr index "$string1" "$string2"`
$ echo $position_of_string2
$
11however, when string2="abc2", it gives me the following result:
$ string1="123456789 abc2"
$... (5 Replies)
Discussion started by: littlewenwen
5 Replies
9. Shell Programming and Scripting
Hi, guys. I have a question. Please help me~
I got an text, recording the weather reports. It is the Attachment "Weather Forcast_original.txt"
I want to get the required result like the attachment "Weather Forcast_formatted.txt"
I thought about the loop, the conditions, but I'm surely... (3 Replies)
Discussion started by: franksunnn
3 Replies
10. Shell Programming and Scripting
Hi Gurus,
I have requirement to compare current result with previous reuslt.
The sample case is below.
1 job1 1
1 job2 2
1 job3 3
2 job_a1 1
2 job_a2 2
2 job_a3 3
3 job_b1 1
3 job_b2 2
for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies
LEARN ABOUT PHP
gupnp_service_proxy_add_notify
GUPNP_SERVICE_PROXY_ADD_NOTIFY(3) 1 GUPNP_SERVICE_PROXY_ADD_NOTIFY(3)
gupnp_service_proxy_add_notify - Sets up callback for variable change notification
SYNOPSIS
bool gupnp_service_proxy_add_notify (resource $proxy, string $value, int $type, mixed $callback, [mixed $arg])
DESCRIPTION
Sets up callback to be called whenever a change notification for variable is recieved.
PARAMETERS
o $proxy
- A service proxy identifier.
o $value
- The variable to add notification for.
o $type
- The type of the variable. Type can be one of the following values:
o GUPNP_TYPE_BOOLEAN - Type of the variable is boolean.
o GUPNP_TYPE_INT - Type of the variable is integer.
o GUPNP_TYPE_LONG - Type of the variable is long.
o GUPNP_TYPE_DOUBLE - Type of the variable is double.
o GUPNP_TYPE_FLOAT - Type of the variable is float.
o GUPNP_TYPE_STRING - Type of the variable is string.
o $callback
- The callback to call when variable changes. Typically, callback function takes on three parameters. The $variable parameter
being the first, $value parameter being the second, and the $arg is third.
o $arg
- User data for $callback.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
gupnp_service_proxy_remove_notify(3).
PHP Documentation Group GUPNP_SERVICE_PROXY_ADD_NOTIFY(3)