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. jerehart

    Old school programmer needs to learn new tricks

    Hey, Well unfortunately I don't have much interest, I just need to complete a task that I was assigned. I have to create a telemetry window and I have a design in the works. The hard part is I know how to do it in Tcl, Perl and on a straight C/VxWorks platform. I have been trying to find...
  2. 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...
  3. jerehart

    Structures and buffers

    Well there were some simplicities in the code snippet. I call them bytes but yes I know they are words lazy names. Making the items constants would be not be useful as they are updated by functions as GVs elsewhere. the array is an idea though but why not just a pointer?
  4. 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...
  5. 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...
  6. jerehart

    Scientific Notation Strings to Decimal Scalars

    Hey P.I.G. That is freak'n great! mind if you explain it a little ... ? SC
  7. 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
  8. 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...
  9. 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...
  10. 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...
  11. jerehart

    Password verification on AIX - how?

    The webserver I assume is apache? I would use .htaccess to let people in and out that is what I use. check out: http://faq.clever.net/htaccess.htm or a search on google: http://www.google.com/search?hl=en&q=.htaccess check out freecode.com I think I took a script from there to do this for me.
  12. jerehart

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

    Thanks Neil, That is the answer because when I finally ran the scripts with perl -wc myscript.pl my syntax came out fine. Thanks again Miah
  13. 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...
  14. 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...
  15. 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...
  16. 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?
  17. 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?
  18. jerehart

    textarea and carrige returns

    D'oh! Thanks for that I missed it. Well I am trying to make a script that will preserve the formating of a textarea into an output file. If I use the virtual wrap I get evrything on one line but if I enter carrige returns that is where I am getting mucked up. That's why originally I was...
  19. jerehart

    textarea and carrige returns

    okay I tried both bit I am still have the problems of having thr data show up as I like I keep getting ^M in my output files. here is my code sub showtext { # Split the text input into lines based # upon new lines \n @lines = split(/\n/,@_[0]); foreach $line (@lines) { #...
  20. 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...

Part and Inventory Search

Back
Top