01-02-2008
Could any one send help me please in this script?
10 More Discussions You Might Find Interesting
1. Solaris
I am using netstat -na command to find out the number of network connections from a specific machine, but this returns information as of now. His there anyway that I can find out this information from yesterday or earlier.
Thanks,
Tim (3 Replies)
Discussion started by: tkimber
3 Replies
2. Shell Programming and Scripting
hi ,
i need a script to convert number into hexadecimal base
for example: 237=>ED
it s very important for me thank you in advance for you help (5 Replies)
Discussion started by: mips
5 Replies
3. Shell Programming and Scripting
Hi there
Im not quite sure how i can do this, but i am retrieving the mac address from boxes, which in some instances is arriving in its shortened format (i.e. dropping the leading zeros)... for example
0:3:BA:1:E:84
Im trying to figure out a way of converting the single character... (3 Replies)
Discussion started by: rethink
3 Replies
4. Shell Programming and Scripting
I have a tricky problem, and I'm quite the scripting newb.
I have Cisco ACLs that have IP addresses in them. I'd like to convert the IP's to hostnames for easier analysis. A sample ACL input file would be (I've obfuscated the IPs):
access-list acl-secure-out line 1 extended permit icmp any... (3 Replies)
Discussion started by: scolazz
3 Replies
5. Shell Programming and Scripting
Hi,
I am using awk to get particular dates in seconds and the output am getting is like 1.28071e+09.
How can I convert it to number format.
Can anyone help me out?
Thanks in advance..! (7 Replies)
Discussion started by: Kattoor
7 Replies
6. Shell Programming and Scripting
Hi gurus,
I have a weird requirement. I need to convert the number to english lecture.
I have 1.2 ....19 numbers
I need to convert to first second third fourth, fifth, sixth...
Is there any way convert it using unix command?
thanks in advance. (8 Replies)
Discussion started by: ken6503
8 Replies
7. Shell Programming and Scripting
friends
as I can convert this value to number
in this example it is well but can vary the value does not help me cut from a nesecito espefifica opsiocn get zero
CantCabe = 00023
Cant = 23
CantPntCabe = 0000000000000034
CantPnt = 34
if && ; then
echo... (3 Replies)
Discussion started by: tricampeon81
3 Replies
8. Shell Programming and Scripting
I have data as below
"ROWS merge process complete. thousand rows changed"
I need to get a variable assigned the value of 1000. I mean convert the string thousand to 1000.
Any help or pointer.
Please use CODE tags as required by forum rules! (6 Replies)
Discussion started by: dsravanam
6 Replies
9. Shell Programming and Scripting
I read in two numbers from a user but the number is a string.
#!/bin/bash
read -p "Enter first number: " num1
read -p "Enter second number: " num2
I know you can use the the "expr" or "bc" command to automatically convert the string to a number then add them together. But I don't want to add... (10 Replies)
Discussion started by: Loc
10 Replies
10. Shell Programming and Scripting
Hello Guys,
I have a floating point number 1.14475E+15 I want to convert this number in to full number (Integer or Big integer). I tried couple of functions it did not work. When I use INT=${FLOAT/.*} I am getting value as 1. I don't want a truncated value
#!/bin/bash
#... (9 Replies)
Discussion started by: skatpally
9 Replies
LEARN ABOUT PHP
ignore_user_abort
IGNORE_USER_ABORT(3) 1 IGNORE_USER_ABORT(3)
ignore_user_abort - Set whether a client disconnect should abort script execution
SYNOPSIS
int ignore_user_abort ([string $value])
DESCRIPTION
Sets whether a client disconnect should cause a script to be aborted.
When running PHP as a command line script, and the script's tty goes away without the script being terminated then the script will die the
next time it tries to write anything, unless $value is set to TRUE
PARAMETERS
o $value
- If set, this function will set the ignore_user_abort ini setting to the given $value. If not, this function will only return the
previous setting without changing it.
RETURN VALUES
Returns the previous setting, as an integer.
EXAMPLES
Example #1
A ignore_user_abort(3) example
<?php
// Ignore user aborts and allow the script
// to run forever
ignore_user_abort(true);
set_time_limit(0);
echo 'Testing connection handling in PHP';
// Run a pointless loop that sometime
// hopefully will make us click away from
// page or click the "Stop" button.
while(1)
{
// Did the connection fail?
if(connection_status() != CONNECTION_NORMAL)
{
break;
}
// Sleep for 10 seconds
sleep(10);
}
// If this is reached, then the 'break'
// was triggered from inside the while loop
// So here we can log, or perform any other tasks
// we need without actually being dependent on the
// browser.
?>
NOTES
PHP will not detect that the user has aborted the connection until an attempt is made to send information to the client. Simply using an
echo statement does not guarantee that information is sent, see flush(3).
SEE ALSO
connection_aborted(3), connection_status(3), Connection Handling for a complete description of connection handling in PHP. .
PHP Documentation Group IGNORE_USER_ABORT(3)