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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tmf33uk
  • Content: Threads
  • Order by date
  1. tmf33uk

    How do I find wwid of iscsi disks in Linux?

    Hi all, this will be a quick question for some of you: I am trying to find the UUID of iSCSI disks that my RedHat Linux sees. I am looking in /sys/class/... but I keep finding symbolic links that send me round in circles: [root@ovs1-ec host6]# pwd /sys/class/iscsi_host/host6/subsystem/host6...
  2. tmf33uk

    Help with global variables

    Hi, I am trying to concatenate the output of a while loop to a $message variable that will be printed once the loop has completed, but as it stands, it returns nothing from the inside $message variable. I am currently not very interested in the else condition. As long as $inexistent has...
  3. tmf33uk

    Assign number value circularly in PL/SQL

    Hi! I have a table with an id column which I would like to update with values 1 to n. Value n is to be defined each time the script is run. I´m using the MOD function, but it´s not working as desired. If I set NUMBER_SCRIPTS=3 most of the rows are assigned ID=3. Should be assigned in the order...
  4. tmf33uk

    Assign number value circularly in PL/SQL

    Hi! I have a table with an id column which I would like to update with values 1 to n. Value n is to be defined each time the script is run. I´m using the MOD function, but it´s not working as desired. If I set NUMBER_SCRIPTS=3 most of the rows are assigned ID=3. Should be assigned in the...
  5. tmf33uk

    Extracting just part of a field´s data

    Hi! I need to select from a field just part of a character string. The field, specifically is comment_text from dba_audit_trail, and contains: Authenticated by: OS; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.203.31)(PORT=59609)) I´m only interested in the IP address from each row...
  6. tmf33uk

    How to return list of files that do not contain a given string

    Hi all! I include below my script and the files involved. Currently, it prints the sqlnet.ora files that contain SQLNET.AUTHENTICATION_SERVICES set to something other than (NONE). However, I need to add a condition that includes in this list files that don´t contain this parameter as well...
  7. tmf33uk

    Checking for files that do not contain a given string

    Please see my script and other file contents below. What I´m trying to do is check whether the sqlnet.ora file in each directory it checks contains SQLNET.AUTHENTICATION_SERVICES!=(NONE) and get an error message for every file checked that either doesn´t contain this parameter, or its value is...
  8. tmf33uk

    How can I work line by line of an array and split line into fields?

    Hi, I need help with a loop in a script that is not doing what I want it to do. I include the whole script at the bottom of this message. The intention is that (1) it reads a file /var/opt/oratab into an array (this works), (2) It should go line by line, and separating the fields by : so that...
  9. tmf33uk

    Push value of $_ onto an array for later use without concatenating

    Hi, I´m preparing a perl script that reads a file and then treats it line by line. The line print "$_\n"; prints correctly the 4 lines the file it is reading has. However, the line print "@lines\n"; prints an output of: Line1 Line1Line2 Line1Line2Line3 Line1Line2Line3Line4...

Part and Inventory Search

Back
Top