Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by biondo68

  1. biondo68

    I have file with this records ww

    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...
  2. biondo68

    Useradd Centos without ldap

    Hi, it's possible on centos create system users webmaster@pippo.com or support@example.com ? Thanks
  3. biondo68

    Script for Reload services

    Hi I used the solution with " id " . Thanks for yours suggestions. Biondo68
  4. biondo68

    Script for Reload services

    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...
  5. biondo68

    Script for Reload services

    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 .
  6. biondo68

    Script for Reload services

    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...
  7. biondo68

    Moving file from one host another

    if use rsync with -e ssh ?
  8. biondo68

    script perl

    Is correct what he says Annihilannic . Excuse me If I didn't understand .. Thanks
  9. biondo68

    script perl

    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...
  10. biondo68

    script perl

    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"...
  11. biondo68

    script perl

    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...
  12. biondo68

    package rpm for REDHAT

    Hi Try this website http://rpmfind.net/linux/RPM/
  13. biondo68

    script perl

    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...
  14. biondo68

    More directory

    It's perfect !! Thanks PHV Biondo68
  15. biondo68

    More directory

    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

Part and Inventory Search

Back
Top