Hello,
We have a Solaris 9 machine and recently our client want to create username based on staff numbers (all numeric).
Is there any limitation in Solaris regarding creating username with numeric values (eg: 13598029)?
Thanks & Regards
Aryawarman Mahzar (5 Replies)
Hi,
How to check whether an input to a shell script contain only numeric values.
Is there any way to check against the following characters.
&
(
)
|
\
"
'
<
>
`
I've used the following way.
echo $1 | grep "\{2\}$"
if
then (12 Replies)
Is there a simple way of determining whether a command line arguement is numeric or not?? I tried a search and didn't find anything similar...
This is the 2nd time I've made this post.... It didn't appear that the first one showed up ??
Sorry if this is a duplicate... (1 Reply)
Is there an easy way using a command or other routine for testing whether an argument on the command line is numeric? Just want to validate... I ran a search and didn't find a similar question....
Thx (3 Replies)
Hi everyone, I want my script to check if the first argument has only numbers or not. Im not sure what im doing wrong.
This is how it looks like:
if *") ]
then
echo 'The first arguement should only be in numeric' 1>&2
exit 1
else
exit 0
fi (7 Replies)
Hi, I'm trying to check to see that the arguments given to my script are both numeric and positive integers. I'm using tcsh. I figured out the positive part, but I am having trouble with the arguments being numeric and integers
I have no idea where to get started with the checking them actually... (1 Reply)
Can someone tell me how to change the first column in a very large 17k line file from a random 10 digit numeric value to a non numeric value. The format of lines in the file is:
1702938475,SNU022,201004
the first 10 numbers always begin with 170 (6 Replies)
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
Gurus, Please need your help.
I'm saving a filetimestamp into $filetimestamp and
say....echo $filetimestamp gives 2015021612
I'm saving a cutoff_time into $cutoff_time
say....echo $cutoff_time gives 2015021514
now my requirement is to check if $filetimestamp is greater than... (4 Replies)
Discussion started by: thummi9090
4 Replies
LEARN ABOUT PHP
time_nanosleep
TIME_NANOSLEEP(3) 1 TIME_NANOSLEEP(3)time_nanosleep - Delay for a number of seconds and nanosecondsSYNOPSIS
mixed time_nanosleep (int $seconds, int $nanoseconds)
DESCRIPTION
Delays program execution for the given number of $seconds and $nanoseconds.
PARAMETERS
o $seconds
- Must be a non-negative integer.
o $nanoseconds
- Must be a non-negative integer less than 1 billion.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
If the delay was interrupted by a signal, an associative array will be returned with the components:
o seconds - number of seconds remaining in the delay
o nanoseconds - number of nanoseconds remaining in the delay
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | This function is now available on Windows plat- |
| | forms. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
time_nanosleep(3) example
<?php
// Careful! This won't work as expected if an array is returned
if (time_nanosleep(0, 500000000)) {
echo "Slept for half a second.
";
}
// This is better:
if (time_nanosleep(0, 500000000) === true) {
echo "Slept for half a second.
";
}
// And this is the best:
$nano = time_nanosleep(2, 100000);
if ($nano === true) {
echo "Slept for 2 seconds, 100 microseconds.
";
} elseif ($nano === false) {
echo "Sleeping failed.
";
} elseif (is_array($nano)) {
$seconds = $nano['seconds'];
$nanoseconds = $nano['nanoseconds'];
echo "Interrupted by a signal.
";
echo "Time remaining: $seconds seconds, $nanoseconds nanoseconds.";
}
?>
SEE ALSO sleep(3), usleep(3), time_sleep_until(3), set_time_limit(3).
PHP Documentation Group TIME_NANOSLEEP(3)