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 Chriss Miller 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 kaih

  1. kaih

    How to transfer files from Vax to AIX using DECnet

    <br>Hmmm, I used to run ftp on vaxen....<br><br>But I would guess that the program you are looking for is kermit. It provides much the same functionality as an ftp server, but runs a single session, rather than being a general daemon.
  2. kaih

    Andybo - How do I make the info $My_string

    You can simplify AndyBo's program a bit at the expense of debuggability:<br><FONT FACE=monospace><br>while (&lt;INPUT&gt;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;push(@File_Array, $_);<br>}<br></font><br>collapses to<br><FONT FACE=monospace><br>@File_Array = &lt;INPUT&gt;;<br></font><br>I use this...
  3. kaih

    How would you describe HP-UX to a group of non-technical people?

    HP-UX is one of the world's leading flavors of unix. Unlike some flavors of unix (for example, aix) HP-UX generally uses standard commands for system maintenance, so general unix training is useful to sysadmins on an HP-UX system. The advantage to unix over other operating systems is that unix...
  4. kaih

    How can I put the result of &lt;STDOUT&gt; in a variable

    <br>If I understand correctly you are running an external command &quot;xcom62 -cf&quot; in your perl program. You need to capture the output from this command, and put it in a variable.<br><br>The trick is to use backtics, like in shell scripting. If you want everything in one string then...
  5. kaih

    books

    <br>For general reference you can't beat the O'Reilly series, but for korn shell usage and scripting, my favorite is<br><br>KornShell Programming Tutorial<br>by Barry Rosenberg<br>ISBN 0-2-1-56324-X<br>Addison-Wesley Publishing Company<br><br>
  6. kaih

    Mental Block: Convert text field to binary

    pack or unpack?
  7. kaih

    Breaking Lock for RCS

    from 'man rcs'<br><br><br>-u[rev]<br>&nbsp;Unlock the revision with number rev.&nbsp;&nbsp;If&nbsp;&nbsp;a&nbsp;&nbsp;branch&nbsp;&nbsp;is<br>&nbsp;given,&nbsp;&nbsp;unlock&nbsp;&nbsp;the latest revision on that branch.&nbsp;&nbsp;If<br>&nbsp;rev is omitted, remove...
  8. kaih

    Echo to a file

    <br>Sure, we do it all the time. Just add an echo line to the appropriate rc file.<br>
  9. kaih

    What is the latest version of SunOS?

    Well, I started at <A HREF="http://www.sun.com" TARGET="_new">http://www.sun.com</A>, and browsed a bit until I found a list of OS's they sell currently. It looks like Solaris 8 is the highest version now in production.
  10. kaih

    using split with localtime

    Mike,<br><br>You are on the right track. Scalar vs array context is everything in this instance. When localtime() is feeding its output to an array it sends a list of numbers. One of those numbers is the number of years since 1900. (Thus the current year is &quot;$timeVars[5] + 1900&quot;.) When...
  11. kaih

    slurping files quickly

    Yeah, that's kind of what I thought. Be handy if it were built in, but I guess I'll make a module similar to what you wrote. Thanks.
  12. kaih

    slurping files quickly

    <br> Is there a one line way to slurp a file into an array?<br> <br> Instead of <br> open(FILE, &quot;file&quot;) ¦¦ warn &quot;couldn't open file&quot;;<br> @array = &lt;FILE&gt;;<br> close(FILE);<br> <br> I would like to <br> @array = &lt;&quot;file&quot;&gt;;<br> <br> I know, it's just a...
  13. kaih

    why this script cannot loop?

    <br> In ksh you _can_ use exec to open a new file for output, but you don't have to. I suspect that bash is similar. The syntax you used starts a new process, and exits the old one so it can never loop. Try again without the exec.<br> <br> somecommand &gt;somefile 2&gt;&1 # put stdout and stderr...
  14. kaih

    AIX Print skipping

    lp is just a print spooler. Not a print queue.<br> <br> There are several commercial products that provide genuine print queues, instead of just print spoolers for unix. I evaluated lpplus <A HREF="http://www.plustechnologies.com" TARGET="_new">http://www.plustechnologies.com</A> and quite...
  15. kaih

    Regular expression for phone number?

    <br> I see people bypass this most often by providing 3 fields on the form, something like &quot;( ___ ) ___ - ____&quot; that way no parsing is required. If you really want to just use one field you might try<br> /(\d{3,3})\D*(\d{3,3})\D*(\d{4,4})/<br> <br> Have fun!<br> Kai.<br>

Part and Inventory Search

Back
Top