Q for the admin guys,
When the server (Spark) is rebooted does a shell starts database, connection to database, and etc or would have to be the administrator log on as database admin and start the database?
If it starts from the shell how would the script look like since the dba has access to the... (1 Reply)
hi everyone
i'm running script in c-shell and i want this script to connect to admin account in order to run other script in k-shell. after that i want the script to be severed from the admin account and to continue with the regular commands
example:
my script call cs-customers
echo"starting... (16 Replies)
Hi all,
I encountered a problem where my script stops running the remaining checks after becoming an admin that is written within the script.
For example:
=========================================
#!/bin/sh
check 1 # Runs successfully
check 2 # Runs successfully
/com/bin/admin #... (1 Reply)
I'm currently a Windows admin and have wanted to jump ship to the *nix side for a while now. I've been studying both through an lpic level 1 manual as I have time (focusing on debian), and a solaris 10 cert book. The problem is I only have a handful of hours a week to study, and my current job... (3 Replies)
Can anyone create or give me a script that I can use to email a user automatically when I kill one of their processes?
Or
Can you give me a script to allow me to email a user (entering email manually) when a process is killed? Like showing what the PID was and a reason the admin killed it? Is... (2 Replies)
I am planning to choose my career as Unix/Linux Admin or a DBA. But I have come to know from forums and few admins like the job will be 24/7. I have few questions on that.
Can we get "DAY" shifts in any one of the admin Job ?
Can't we have shift timings in any company ?
Eventhough the... (7 Replies)
Discussion started by: Jacktts
7 Replies
LEARN ABOUT PHP
sleep
SLEEP(3) 1 SLEEP(3)sleep - Delay executionSYNOPSIS
int sleep (int $seconds)
DESCRIPTION
Delays the program execution for the given number of $seconds.
PARAMETERS
o $seconds
- Halt time in seconds.
RETURN VALUES
Returns zero on success, or FALSE on error.
If the call was interrupted by a signal, sleep(3) returns a non-zero value. On Windows, this value will always be 192 (the value of the
WAIT_IO_COMPLETION constant within the Windows API). On other platforms, the return value will be the number of seconds left to sleep.
ERRORS /EXCEPTIONS
If the specified number of $seconds is negative, this function will generate a E_WARNING.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.4 | |
| | |
| | Before PHP 5.3.4, on Windows, sleep(3) always |
| | returns NULL when sleep has occurred, regardless |
| | of whether the sleep was interrupted or not. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
sleep(3) example
<?php
// current time
echo date('h:i:s') . "
";
// sleep for 10 seconds
sleep(10);
// wake up !
echo date('h:i:s') . "
";
?>
This example will output (after 10 seconds)
05:31:23
05:31:33
SEE ALSO usleep(3), time_nanosleep(3), time_sleep_until(3), set_time_limit(3).
PHP Documentation Group SLEEP(3)