does any one have any ideas how i would go about calculating the number of days left in the month from a bash script ?. I want to do some operations on a csv file according to the result (8 Replies)
Hi folks,
Here i have written a shell script to calculate a maximum number from 10 numbers entered on command line.
max=0
echo Enter 10 numbers , one at a time
for i in 1 2 3 4 5 6 7 8 9 10
do
read n
max=`expr $max + $n`
if --- At this last step there is some problem, it gives error... (5 Replies)
Hi All,
I have an issue with calculating the network number that needs to be put in /etc/netmasks file in my Sol-9 server.
The IP of my server in 10.164.114.135
Default Gateway - 10.164.114.130
Netmask - 255.255.255.240
If I set "10.164.114.130 255.255.255.240" in netmask file, after... (2 Replies)
Hi,
plz see the below code.
here my aim is to calculate the number of lines in unprocessedData.out
if this file contains 40 lines then lastly $linenum should print 40.(except blank lines)
i have tried below code but it giving me the output only one. can anyone help me how to do ?
... (9 Replies)
I wrote the day calculator also in bash. I would like to now, that is it good so?
#!/bin/bash
datum1=`date -d "1991/1/1" "+%s"`
datum2=`date "+%s"`
diff=$(($datum2-$datum1))
days=$(($diff/(60*60*24)))
echo $days
Thanks in advance for your help! (3 Replies)
Hi,
Please help me to find how to calculate the number of TPS supported by any solaris server for example one server with below configuration .
Sun Blade X6270 with two 4-core processors
2 x 300 GB internal disk drives (2 Replies)
Hi,
I want to get total number of cores on my all non-global zones on Solaris 10. I got two methods and both are giving different results. Below link is a script, which tells me that total cores are 8
Mandalika's scratchpad: Oracle Solaris: Show Me the CPU, vCPU, Core Counts and the... (4 Replies)
Discussion started by: ron323232
4 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 notificationSYNOPSIS
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)