I have file with this records
www.xxxx.it
public $user = 'userxxxx';
public $password = 'xxxxxxxxx';
public $db = 'dbxxx';
www.xxxx.it
public $user = 'useryy';
public $password = 'yyyyyyyyyy';
public $db = 'dbyy';
I need to parse the file and...
correct or you can use another way ?
if [ $(date "+%k") -lt 8 -o $(date +"%k") -gt 17 -o $(date +"%a") == "Sat" -o $(date +"%a") == "Sun" ] && [ $USER != "root" ]
then
echo "Cannot run between 09:00 and 18:00"
else
echo "Run Program Tomcat"
case...
Hi,
Maybe I have not explained well .
I want that ROOT can run the script and the other users can not perform the script on Saturday and Sunday and the hours
present in the scripts .
Hi,
I have a script for reload services, in this case Tomcat .
I want that only root can run the batch
Can you suggest an efficient way ?
my script
#!/bin/bash
if [ $(date "+%k") -lt 8 -o $(date +"%k") -gt 17 -o $(date +"%a") == "Sat" -o $(date +"%a") == "Sun" ]
then...
The row shown are part of file ..
Example
EVENT switchSNTPServiceUnavailable .1.3.6.1.4.1.232.0.161015 Status Events" MINOR
FORMAT A SNTP Server was configured, but no SNTP servers were found. $*
EXEC /usr/libexec/submit_check_result_via_nsca $R TRAP 1 "A SNTP Server was configured, but no...
Ok ,
I try to be clearer....
I have file with 13000 rows.
The variable is "Status Events" MINOR or CRITICAL or MAJOR ,
I need overwrite the second variable "TRAP 1"
"Status Events" MINOR "TRAP 1" in "TRAP 0"
"Status Events" CRITICAL "TRAP 1" in "TRAP 2"
"Status Events"...
Hi thanks.
tha variable is "Status Events" MINOR to overwrite "TRAP 1" in "TRAP 0" in the second row "Status Events" CRITICAL o overwrite "TRAP 1" in "TRAP 2"
#
#
#
EVENT switchSNTPServiceUnavailable .1.3.6.1.4.1.232.0.161015 "Status Events" MINOR
FORMAT A SNTP Server was...
Hi
I am new in perl script . I read tuttorial and other but now I need help for my first script .
I have file with 13000 rows
Where the row have event with "critical"
I need to overwrite "TRAP" variable with "2"
Where the row have event with "warning"
I need to overwrite...
Hi all,
I have a filesystem with more directory (546 )and subdirectory ..
My hope is to have a list with only one line per directory without subdirectory
I use Find in conjunction with Sort but is no good
find ./ -type d |sort -u
O.S Sun Solaris 10
Help me , thanks
Biondo68
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.