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 Rhinorhino 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: jerehart
  • Content: Threads
  • Order by date
  1. jerehart

    Old school programmer needs to learn new tricks

    Hey, I'm an embedded systems programmer that has been waylaid into doing some Win32 work. I am having a tough time trying to figure out the windows GUI. A lot of things aren't making sense. I haven't been able to how to work on a windows program. Some things look familiar but other things...
  2. jerehart

    Structures and buffers

    I am wondering if there is a cleaner way to place strctured data into a buffer. Mainly since the buffer is an address on a cPCI card and just wants the data. typedef struct header{ int h; int t ; } HEAD; typedef struct secondary{ int ms; int us; } SECOND; void output ( unsigned...
  3. jerehart

    Mounting a present directory

    Hey, I have a new partition that has been created. I have a directory off root that I would want to use as a mount point how do I preserve the data in that directory once I designate it as a mount point? /home is contained in root device holding user data -> /home is a mount point...
  4. jerehart

    Scientific Notation Strings to Decimal Scalars

    Hey, I am reading in from a file which has numbers in the format of: +1.0500000000000000E+004 or -0.2500000000000000E+003 any idea on a cheap & easy way to change these strings into scalars? Or turn them into the following strings? 10500, -250 ? SC
  5. jerehart

    Removing parts of a string

    Hey I need help parsing data, here is what it looks like (this is a single line from the input file): 1189: 4m56.5 23.55us ..00C904 ....6010 WORD WRI OK .......---- --- .... to split up the data I am using: @data = split (/[\ \t\n\-]+/,$_); which returns...
  6. jerehart

    unpack Binary Data

    Hey, I am working on a binary file and need to get certain values out of the file and be able to use them as readable values, hex or decimal. I was thinking un/pack can help me but not too sure. Here is my code: open(INFO,&quot;<$file&quot;) || die &quot;Can't open $file: $!\n&quot...
  7. jerehart

    Can't see the ouside world

    Hey, being the unlucky person of knowing the root password I get to set up a solaris box. I have been trying to place a solaris 7/5.7/2.7 box onto an internal LAN. I have the ip address, dns servers, gateway, and subnet but no matter what I try nothing works. I have manually updated...
  8. jerehart

    Use of uninitialized value with eq, ne, chomp .. etc

    Hey, I am getting these weird warnings when I use comparisons (of strings) and work on strings. my script wasn't working so I did a perl -w myscript.cgi and I get warnings of the type: Use of uninitialized value in string eq at readdata.pm line 6. where that line is (from readdata.pm line...
  9. jerehart

    Com port priority

    Hey I am running a simulator in Visual C++, on NT 4.0 It was designed to use the com port. The bad thing is that timing is an issue and we lose when the mouse is used. Is there any one who knows how to lock out the com port? A semapohore would be best, since it is only needed in one...
  10. jerehart

    Calling cvs from Perl

    Hey I have a question about calling cvs commands from Perl. I have trouble getting Perl to work correctly. > cvs checkout module and in Perl I am trying ` cvs checkout module ` BUt I don't think I use the module directory. Also commit is tricky ../module > cvs commit file how do I do...
  11. jerehart

    formatting a file.

    Hey, I want to create a script that builds the header for me, since I have to put this on a lot of files, and for it to generic like this: #################### # # File Name: # Author: # # Revision History # ----------------- ##################### Any one know a slick way to do this?
  12. jerehart

    regular expression and file delimeters

    Hey, I have an input file that looks like: $$Catagory1 ^data one ^data two ... etc $$Catagory2 ^^data three ^^data four ... etc $$Catagory2 ^^^data six ^^^data five ... etc I am looking for an easy way to parse this off the [^]+ and put them into seperate arrays any ideas?
  13. jerehart

    textarea and carrige returns

    Hey I am having problems with newlines entered into a textarea. I have been trying to parse the textarea and replace the \r with <p>, but I am not getting it to work right. Everytime I view the output file I have ^M instead of a continued line or my paragraph tag. I am running on Solaris...
  14. jerehart

    Table or structured output to stdout

    Hey I want to output some text from a script where everything lines up regardless of the output string size. I am looking for something like a setw(#spaces) type thing. any ideas?
  15. jerehart

    Size of a hash

    How do I figure out the size of a hash? I am looking for something similar to $#ARRAY for an array size. Is there another way other than traversing through the whole hash?
  16. jerehart

    mailto and cc or bcc

    Is there anyway to blind/ carbon copy with mailto? I need to have a dymanic mailer that can mail more than one person when needed. I was thinking about making a dynamic distribution list but was hoping I could make it easier with HTML and not use perl/cgi. No java help please won't run on the...
  17. jerehart

    Help with sftp

    I have installed sftp on two solaris boxes but I am having problems using it. The connect is rejected by the target. is there any file I need to modify to allow certain useres to sftp? Miah
  18. jerehart

    split still giving whitespace

    I am trying to remove all white space doing the following: @DATA = split (/[\ \t\n]+/,$string); but the first value sometimes give me a space, b/c sometimes the first part of the string is a space how do I get rid of that?
  19. jerehart

    Does anyone have a ascii/Hex converter?

    Hey I am just looking to transform an ascii string into the hex equivalent string 'hi' => 0x6869 I figure this has been done and too lazy to do it today.
  20. jerehart

    taring and gzipping all at once

    I am trying to gzip some files and then pipe it into tar but can't get it right. I have tried: gzip -vr * | tar cvf /dev/rmt/0 - tar cvf /dev/rmt/0 `gzip -vr *` tar cvf /dev/rmt/0 `ls `gzip -vr *`` any ideas? Miah

Part and Inventory Search

Back
Top