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

    How to interrupt popen()?

    Hmm, I was seeking an elegant way. Someone told me the following solution, I think this is what I am looking for. Anyway thanks for your responses. Mack > I've been working on ZipOMatic lately, but now that I'm > close to finishing it, I don't know how to kill the zip process, > having...
  2. mackpei

    How to interrupt popen()?

    Hello, I have a question: how to interrupt a command execution given in popen()? It seems that I could use kill(pid), but how can I find out the pid of the command execution in popen()? Are they any methods for this? Thanks! Mack
  3. mackpei

    How to set password to a ZIP using a script?

    Well, the zip program on my Solaris does have the option "-e". The problem is that I must type password twice in an interactive mode: $ echo 'my_lovely_pwd' | zip -e my_zip.zip my_big_file.txt Enter password: Verify password: adding: my_big_file.txt (stored 78%) If I program with...
  4. mackpei

    How to set password to a ZIP using a script?

    I am using the option "-e". Here is the version info: $ zip -v Copyright (C) 1990-1997 Mark Adler, Richard B. Wales, Jean-loup Gailly, Onno van der Linden and Kai Uwe Rommel. Type 'zip -L' for the software License. This is Zip 2.2 (November 3rd 1997), by Info-ZIP. Currently maintained by Onno...
  5. mackpei

    How to set password to a ZIP using a script?

    Hi, I want to use ZIP to compress a lot of files and set password on ZIP files generated in a script. But how can do this automatically without prompting password input each time? I tried echo "mypasswd" | zip ... and zip ... < mypasswd.txt But they don't work on my Solaris. Any hints? TIA...
  6. mackpei

    Why is the conversion from seconds to date time string so slow?

    Hi, I have a performance issue concerning the conversion from C's time_t (seconds since 00:00:00 GMT Jan. 1, 1970) to a date time string like CCYYMMDDHHMMSS. I use EXSLT's Date library (add, duration, ...) to do this conversion. It works, but the performance is very poor (e.g.: 22 minutes for...
  7. mackpei

    How to convert hexBinary to unsignedLong?

    Hi, Can anyone over there tell me how to convert a hexBinary value (up to 8 bytes) to unsignedLong with XSLT? TIA! Mack
  8. mackpei

    How to process file in parallel in a script?

    Hi there, I have a script processing a lot of files in a directory. If the files are processed in sequence, it would take much time. So one idea is to create several child processes, and each of them will process a part of the files. My question is: Is there any easy way to group the files...
  9. mackpei

    How to process file in parallel in a Perl script?

    Hi there, I have a Perl script processing a lot of files in a directory. If the files are processed in sequence, it would take much time. So one idea is to create several child processes, and each of them will process a part of the files. My question is: Is there any easy way to group the...
  10. mackpei

    How to specify dayTime type in another format?

    Hi, How can I specify a simpleType derived from dayTime in my XSD file, so that I can just use CCYYMMDDHHMMSS (instead of CCYY-MM-DDThh:mm:ss) in XML files? TIA! Mack
  11. mackpei

    Files suddenly zeroed!?

    Thanks for your hint. We did not see any messages like "NFS Server not Responding" or "RPC Timeout", because we noticed this error after our system was stopped due to the zero-sized executable files. Our sysadm restored the zeroed files from backup yesterday. There were just about 20 from...
  12. mackpei

    Files suddenly zeroed!?

    Hello, Yesterday something strange happened on our system: Some executable files were suddenly zeroed! These files (together with other executable files) are mounted via NFS. We suppose this could be a human cause (perhaps unintended), is also an NFS problem possible? Hints are...
  13. mackpei

    SIGBUS and SIGSEGV Errors in HP-UX 11 and Oracle 9i

    Thanks for your hints. I just investigated the problem again, and the crash does not happen any more if I do the following changes. The case &quot;crash&quot;: 1. Create a child process 2. Terminate the parent process 3. In the child process: Connect to DB (Oracle 9) 4. Core dump (without...
  14. mackpei

    SIGBUS and SIGSEGV Errors in HP-UX 11 and Oracle 9i

    Hi, We also got a crash (SIGSEGV) in our case, anyone has idea? TIA Mack Here is the problem description: ### Is this a new or existing installation? ### Existing ### Please describe the problem or question that you have. ### We are using PRO*C precompiler in our applications to connect...
  15. mackpei

    How to export global address list in MS Outlook?

    Thanks. Sorry if this is a silly question: How can I then convert this file to a plain text file? I am quite confused by the MS Windows and Outlook's GUI. Regards Mack
  16. mackpei

    How to export global address list in MS Outlook?

    Gurus, Could anyone over there tell me how to export the Global Address List in MS Outlook? I tried Tools\Synchronize\Download Address Book, but I have no idea where the Address Book is downloaded on my local computer. TIA Mack
  17. mackpei

    How to get the first N rows from a sorted result set?

    Here is an &quot;improved&quot; version for the table with duplicate values: select test from (select distinct a.test from mack a, mack b where b.test = a.test) where rownum < 4 order by test; I noticed that the subquery (with join) already returns a sorted (ascending) result set, and...
  18. mackpei

    How to get the first N rows from a sorted result set?

    Interesting ... how about this: select a.test from mack a, mack b where a.test = b.test and rownum < 4 order by a.test; It seems to work (and only for ASC) ! Mack
  19. mackpei

    How to get the first N rows from a sorted result set?

    No, it doesn't work as I required: create table mack (test integer); insert into mack values (5); insert into mack values (4); insert into mack values (3); insert into mack values (2); insert into mack values (1); select * from mack; TEST ========== 5 4 3 2 1 5 ROWS SELECTED...
  20. mackpei

    How to get the first N rows from a sorted result set?

    But if I get: 1* select * from test where rownum < 4 TEST --------- 4 3 2 It is possible (see my first posting)...

Part and Inventory Search

Back
Top