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 siswjh

  1. siswjh

    Regular Expressions do you have a gun?

    I have read chapter 7 in Programming Perl and still don't have a clue. I am looking for a pattern like this. if (/hscsunp1/) { print $_; The only problem is that it prints everything on that line I just want the pattern I have specified. If I'm writing korn shell nawk works great, I just...
  2. siswjh

    Printing extracted data to same line of file

    Hey duncdude, that worked but I have one more question. When it puts the extracted data in the new text file it does not take the first value extracted and left justify it. It looks like there is probably 8 or 10 spaces. Do you have any idea how to do away with that.
  3. siswjh

    Printing extracted data to same line of file

    I have a script that extracts data. I want the data that it extracts to be printed on the same line. I can't seem to make it work. It extracts the data but prints each find on a new line. The data that is being extracted also has to be delimited by a semi-colon. Here is the script...
  4. siswjh

    Date Conversion of Date stamp in a file

    What I have is some log files that are created by a scheduler we run our jobs through (OS Solaris 8). The date in the logfile is of this format Fri Jan 9. I would like to extract this out of the file and convert it to this format 2004-01-09 and put it in a new file. Is there a way to do this.
  5. siswjh

    Does Solaris have postscript drivers *.ppd files

    If so could someone tell me where they are! Thanks
  6. siswjh

    Finding patterns

    I would like to write a script that searches for a pattern in a line. The line will look something like this: Index Filename CreationDateCreationTime Bytes Download 1 samename.001 Y 2 samename.002 N I...
  7. siswjh

    RedHat 2.1 Advanced Server

    No error message and the rpm -qa|grep kernel does not show the new kernel. I will tell you though when I tried this I just used the rpm -i I didn't use the vh flags. I don't know if this makes a difference. I was just notified about a new yesterday and went and downloaded the tar file which...
  8. siswjh

    RedHat 2.1 Advanced Server

    I have downloaded a kernel update to my pc then ftp'ed to my linux box. How can I install the updated kernel. The box has no connectivity to the outside world so I can't do the up2date command. The kernel update is an rpm, I thought I could just do rpm -i kernelversion to install but that...
  9. siswjh

    Perl commands versus ksh commands

    I know with ksh that you can check and see if the command completed without error by checking $?, can this be done with perl.
  10. siswjh

    Protecting page with password on Apache 1.3.27

    I did the htpasswd -c /www/passwd/password/user as per instructions on apache.org then chmod 640 on directory passwd and changed group to nogroup. I added this: <Directory /www/htdocs/proftp-admin> AuthType Basic AuthName &quot;Proftp Admin&quot; AuthUserFile /www/passwd/password...
  11. siswjh

    Solaris 9 64 bit Mysql 4.0.12 and Proftpd 1.2.8

    Solaris 9 box with Mysql on it and configured. I am trying to install proftpd now and it craps out on me. This is what I do cd to source ./configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/include --with-libraries=/usr/local/lib/mysql This runs fine, dosen't crap out...
  12. siswjh

    Changing ipaddress on Red Hat Advanced Server 2.1

    Is it as simple as going in to /etc/sysconfig/network-scripts and vi'ing the ifcfg-eth0 and changing it in there.
  13. siswjh

    Red Hat Advanced Server 2.1 (script does not run on startup)

    Thanks for the help everyone but I found a way to do it.
  14. siswjh

    Backing up to remote tape drive

    New to linux, but I know on unix that you can backup to a remote tape drive with a command like this: ufsdump 0uf somesystem.somedomain.com:/dev/rmt/0cbn /usr Can this been done on Linux Advanced Server 2.1
  15. siswjh

    how do change the default run level

    Right now the box boots into init 5, I want it to boot init init 3.

Part and Inventory Search

Back
Top