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

  • Users: logic4fun
  • Order by date
  1. logic4fun

    read xml doc

    All, This is my first day in ASP and also WEB programming and i am looking into a requirement which is on my plate when someone is on vacation. There is a HTML page which returns data in XML format. Something like this...
  2. logic4fun

    Changing Array Contents

    Sorry for not being clear, What i am trying to do is pull the data from the database using perl DBI and insert into some other table. When i fetch a row it will be stored into an array..and when i want to insert i need to add quotes or modify elements as per the table requrements. Row i...
  3. logic4fun

    Changing Array Contents

    Hi all, I am a newbie in perl and tried to search perl forums for my question but couldnt get the answer. Also i am not sure even if it is possible or not.. What i am trying to accomplish is.. I have an array @data = (a b c d) and i need to change it as @data = ('a',b,c,'d'). All i need...
  4. logic4fun

    read() problem

    Hi All, I am not sure whether its related to my read call or something else. But i am stuck after the read call in the program. I am trying to read data from a file (client/server) program. This program works fine when the file name is to a limited size (for eg...
  5. logic4fun

    Indicator variable arrays.

    Any help here ?? thank logic4fun
  6. logic4fun

    Indicator variable arrays.

    All, I am trying to use indicator variable arrays in my fetch statement and i am getting error. This particular chunk of code used to work fine on redhatLinux for past 2 or 3 years. and now we wanted to move to enterprise linux and it is not accepting indicator variable arrays. But it is...
  7. logic4fun

    *** Search DIR for file name ***********

    Is there a way to get this done using STAT and dirent structures. because i dont want to make a systemcall or popen call to ls -lrt.
  8. logic4fun

    *** Search DIR for file name ***********

    Can somebody help me out if i need to read the last 10 oldest files from a directory without taking into array. The above gives the newest or the oldest. Thanks for your help
  9. logic4fun

    reading oldest file

    All, I have a C program with embedded SQL which reads the files and loads them into database. Today i am using a system call to ls -lrt and taking the output into an array to get my oldest file. I am trying to avoid using system call. Is there anyway to retrieve the oldest file from the...
  10. logic4fun

    Rookie in Perl, Parsing question

    Thanks a lot guys for all your help. it worked fine.
  11. logic4fun

    Rookie in Perl, Parsing question

    #!/usr/local/bin/perl use English; use POSIX; #creates var $infile $infile = $ARGV[0]; #if $infile is empty exit if ($infile eq '') { usage(); exit;}; open(IN,"/bin/grep JOE $file |"); while(<IN>){ @elements = split(/\s+/); $element_count = @elements; print...
  12. logic4fun

    Rookie in Perl, Parsing question

    All, I am trying to do the following in a simple perl script. But as i am very basic to perl i am having tough time getting through. sample Input files ----------------- Hello i am fine JOE::1:122,2:2,3:18,4:37, i am doing great here JOE::2:11,3:3,4:3,5:28,6:2 JOE::1:1234,5:12 ---------- All...
  13. logic4fun

    Problems reading binary files

    Here is the code if((fp1 = fopen(fname,"rb")) == NULL) { printf("error opening file %s \n",fname); exit(1); } while(1) { if(fread(fieldlen,(2 * sizeof(fieldlen[0])),1,fp1)<1){ if(feof(fp1)) break; } bytes_read += (2 *...
  14. logic4fun

    Problems reading binary files

    All, I am trying to read binary files and i am experiencing premature end of file. I checked with feof() and it reaches end of file. But when i do a strings on the binary file i see more records after it said end of file. Can somebody provide me an insight on this. thanks in advance logic4fun
  15. logic4fun

    Calculating differences between rows

    I went through the answer.. I was wondering what if it is this case and i want the difference Here is a sample of my data: ID Type VALUE -- ----- 1 10 12 1 8 15 4 10 18 4 15 9 in the above case i need the difference for each id betwen that two rows. such...
  16. logic4fun

    SQL Query Help

    Thanks a bunch..both work
  17. logic4fun

    SQL Query Help

    All, I am trying to write a query on the following data.. Identifier VAlue 1002 1 1002 7 1002 10 1003 1 1003 5 1003 7 1003 10 1004 7 1004 10 from the above i would like to query all the identifier which ontail values 1 and 5 and 7. so the...
  18. logic4fun

    Avoiding Duplicate Copy

    I dont have any experience with semaphores. can u please get me a start with an example thanks logic4fun
  19. logic4fun

    Avoiding Duplicate Copy

    I am on RedHat Linux 8.1 . thanks logic4fun
  20. logic4fun

    Avoiding Duplicate Copy

    lock file technique is good. but we dont want to rely on file handles and files as this is a critical application and in somecases the file system may put us..in trouble. thanks logic4fun

Part and Inventory Search

Back
Top