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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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)...
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
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...
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...
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...
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...
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.
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...
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, "/ ");
But that seems to replace all occurrences of the "/" in the closing tags "</" of the HTML source...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.