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!

Search results for query: *

  • Users: fox12
  • Content: Threads
  • Order by date
  1. fox12

    Convert Special Characters Back to ASCII or Readable

    I have some special chars like hyphen, quotes etc in a string. They are stored in MySql database. When I queried the record directly from the db, it appears that the records is fine by showing a hyphen (-) or quotes (either single or double). However, when I read it from the database, and...
  2. fox12

    Weird Failure after System() call

    I have a test.cgi program which calls a perl program by using system(). I have the code snippet like below: print STDERR "Before Executing Cmd\n"; system($cmd); print STDERR "Cmd complete\n"; $cmd is a .pl program which will create a three files in the specified directory. In the log file, I...
  3. fox12

    [b]Untaint a File Path variable[/b]

    Hi, Gurus, not familiar with Taint. I have a shell command call like below: my $exeCommand = "$parentPath/mybin/createPDF $sourceFile $workingDirectory/$targetFile"; my status = '$exeCommand'; The script runs on a Linux box. $parentPath is an absolute path to the sub directory...
  4. fox12

    Asynchronous Callback Web Services in Perl

    Hi, Gurus, I have a page calling a web service. Because it will take more than a minute to compute, I'd like to implement an async call to the web services. I know Perl does not have a direct support for async call. However, I hear there is a way to implement it. The question is HOW??? I...
  5. fox12

    VB .Net2002 Save Excel Worksheet as another Excel file

    I am building an application using VB .Net2002 (later version will be fine if it is required). I want to read an Excel file, and save each worksheet in it as another Excel file. Is there any body who did that before? It would be appreciated much if you could show me some sample code, or...
  6. fox12

    How to Execute a Tcl script from a C Program?

    I have a tcl script to be called within a C program. I use the system(tcl_script_file) to execute it. The call returns successfully, but the script is never executed. What is the right way to run a Tcl script from within a C program. By the way, the script will take in one argument. I run...
  7. fox12

    Return Status for system()

    Gurus, In a code segment, I have the code below strcat(cmdstring, "/export/home/user9/scripts/trans"); // trans is an executable script status = system(cmdstring); if (status = -1) { sprintf(msg, "System() call failed\n"); } else { sprintf(msg, "System() call succeeded\n"); } My...
  8. fox12

    What is #if 1

    Hi, Gurus, I only have basic understanding of C language. In a program, I have the following code segment that I don't understand: #if 1 close_transaction(); #else exec_transaction(); #endif My question is what the line "#if 1" mean, and from where I should look to find the control...
  9. fox12

    How to construct a query for annual revenue?

    Hi Gurus, I have a table containing data like followings: cust_id amount startDate endDate 123 2345.00 12/01/2004 11/30/2005 123 2440.00 12/01/2005 11/30/2006 124 3660.00 05/01/2005 04/30/2006 125...
  10. fox12

    How to Debug An External Module

    I have two programs. The first program will call the second one by CALLING _spawnl(...). The two programs were developed by other developers. How can I debug the second program by starting the first in Debug mode? Please note that I don't know the inputs and outputs for the second program...
  11. fox12

    Urgent Help on Oracle ODBC Driver Not Found After Installing

    I installed Oracle 9.2 on a laptop. I can use PL/SQL to connect to the Oracle Database server located on a remote machine without any problem. The Oracle Net Configuration Assistant does not tell me any problem either. However, I could not find ODBC driver for Oracle Within the Windows ODBC...
  12. fox12

    Handling With Special Characters

    I have a report with asking a user to select a project name first before retrieving data. I set all the default values of the project in the parameter fields. However, if the project name contains a character like "-", the report returns no records (which should actually returns a few)...
  13. fox12

    Query on Dates

    I need to retrieve records based on the fiscal year. In the table, there is a starting_date field and a ending_date field in the format 'MM/DD/YY'. How can I select records since the last 5 years? Thanks
  14. fox12

    NAS-based Solution

    I got the following requirement: NAS based solution with 8TB which can be expandable to 40TB. I know NAS means Network Area Storage. My question is when I am trying to find a solution to it. Where to start? What hardware and software to be considered? configuration and networking issue...
  15. fox12

    Data Storage Backup -- Tape / Disk???

    I am new to this field and new your advice. I am looking for a solution to backup up to 100 GBs each day for 7 (or up to 14) days. I can go either a Tape backup or a Disk backup. Can you gurus provide some information about a "good" Tape Drive, a Disk Storage server and their costs? It is...
  16. fox12

    Wrong Data In View

    I created a db link successfully. Then I used a "Select count(*) from test_table@db_link" to query how many records. It returned "400". Then I queried the table "test_table" at the local database using "select count(*) from test_table". It returned "385". So far, both are correct. However...
  17. fox12

    System Beep!!!

    I have a program which calls the system beep when there is an error. The beeping sound is barely audible on the PC. I got to keep very close to the PC to hear the sound. I'd like it to be louder. There are two speakers connected to the PC. I'd like to make the system beep audible via the...
  18. fox12

    Only One Record Displayed

    I created a view which retrieved 121 records. However, when I created a Crystal Report by using the following sql command: SELECT * FROM BillingStatements It only returns me one record. What may be wrong? Thanks.
  19. fox12

    How To Construct Outer Join

    I need to retrieve data from three tables using an outer join. I created a sql like the following: SELECT a.ID, a.name, b.payment, c.description FROM table1 a, table2 b, table3 c WHERE (a.ID = b.ID AND b.active = 'Y' AND c.ID = a.cust_code (+) It returns that the SQL command does not end...
  20. fox12

    Find and Replace All Forward Slashes Only

    How can I cleanly replace all forward slashes "/" with "/ " in a page with javascript? I tried the following code: document.body.innerHTML = document.body.innerHTML.replace(regstr, "/&nbsp;"); But that seems to replace all occurrences of the "/" in the closing tags "</" of the HTML source...

Part and Inventory Search

Back
Top