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: *

  1. NatAnderson

    how to replace characters in string?

    my $addr = "abcd@abcd.com"; $addr =~ s/@/\\@/;
  2. NatAnderson

    output lscfg

    Here is a better sample of the output: cd0 10-68-00-3,0 16 Bit SCSI Multimedia CD-ROM Drive (650 MB) Manufacturer................IBM Machine Type and Model......CDRM00203 ROS Level and ID............1_06...
  3. NatAnderson

    Using Multi-Dimensional Arrays

    How about $count{$username}{$csuri}++ (a multi-dimensional hash)
  4. NatAnderson

    output lscfg

    The following will work for lscfg -v. It does not work if you add the platform specific data (the -p option), since that is output in a hierarchical format. lscfg -v | tail +7 | # Skip first six lines of output egrep "^ [^ ][^ ]*|Serial Number" | # Get only lines with device and...
  5. NatAnderson

    Help: how to list files "*.*.*"

    The following should do it: find ./ -name \*.\*.\* \! -name \*.\*.\*.\*
  6. NatAnderson

    how to send cat results of file to a variable

    Oops, that should be $log=`cat sudoers`
  7. NatAnderson

    how to send cat results of file to a variable

    log=`cat sudoers` Make sure those are backticks, and not apostrophes (it's usually the key with the tilde).
  8. NatAnderson

    Sed TAB problems

    From the command line, you should be able to use control-v followed by a tab to generate a literal tab. This should not be necessary in Bourne shell or ksh, but is necessary if you are using bash, since tab is the command completion key. If you substitute this for your current [\t], it will...
  9. NatAnderson

    Detailed log of all requests actioned on DB

    The sysmaster table is generated by the database at runtime. It is used by Informix to keep track of system statistics as well as provide information about tables, columns, chunks, dbspaces, etc. You should not be able to cause any problems to the database by playing with the sysmaster...
  10. NatAnderson

    Free space available in araw device

    There is no way from AIX to determine the free space in a raw logical volume. Since AIX does not manage the space other than how large the total available space is, it does not know what is used and what is not used. The amount of used/free space should be determined in oracle. You should be...
  11. NatAnderson

    Running a script from cron results error

    It seems as though the script is using the stty command to check or alter terminal characteristics. Since the script is running from cron, there is not a real or pseudo-terminal associated with it, only stdin, stdout, and stderr filehandles, which cannot be altered in the same ways as...
  12. NatAnderson

    Querying database for columns

    The following query will list the columns of a table named 'table': SELECT sc.colname FROM syscolumns sc, systables st WHERE st.tabid=sc.tabid AND st.tabname='table' ORDER BY sc.colno There are more columns in the syscolumns table that define data type, column length, minimum value, and...
  13. NatAnderson

    2nd DNS server in tcpip config

    Piloria, As root, run smitty tcpip and select the following menu options: Further Configuration Name Resolution Domain Nameserver (/etc/resolv.conf) Add a Nameserver You can then type in the IP Address for the name server.
  14. NatAnderson

    Detailed log of all requests actioned on DB

    This should give you at least part of the information you are looking for. Use onstat -g sql to get a list of sessions, current query type that is executing, and the database the session is connected to. To show the sql that was last executed for a particular session, use onstat -g sql...
  15. NatAnderson

    Ontape archive to disk

    From what I understand, ext2/ext3 only has support for files larger than 2Gb on systems with 64-bit processors, due to the overhead in converting 32-bit to 64-bit necessary for larger files.

Part and Inventory Search

Back
Top