Search Results

Search: Posts Made By: tqlam
1,264
Posted By tqlam
Thanks everyone!
Thanks everyone!
1,264
Posted By tqlam
ssh2 foreach loop issue
Hello Everyone,

I have the following codes that only works for the first login element. I can't get it work with the second and third login credentials. Can anyone here see the problem?

I...
1,092
Posted By tqlam
Sorry for the confusion. Yes, need to map the...
Sorry for the confusion. Yes, need to map the first array with second.
And it is in Perl.


Thanks!
1,092
Posted By tqlam
Need Help Mapping Arrays
I have the following arrays with different lengths that I want to map them with the same key.

# Week numbers, 8 columns
@headers = ("2011-34", "2011-35", "2011-36", "2011-37", "2011-38",...
1,455
Posted By tqlam
Why Perl Subroutine Passed In Variable is 1?
The following subroutine prints 1 instead of the content of the Equipment variable. Can someone tell me why?

#!c:/perl/bin/perl.exe
#
use strict 'vars';

my $Equipments = "data/equips.txt";...
Forum: Programming 03-04-2010
2,612
Posted By tqlam
Turn java cmdline program into GUI
I have a java command line program from a vendor without source code, but it's too much work to run on a PC window, therefore I'm think to create a GUI wrapper or web interface calling that java...
Forum: Programming 12-22-2009
5,623
Posted By tqlam
Hello, thanks for all replies. I finally used...
Hello, thanks for all replies. I finally used strtok to parse into token.

Thanks again!
Forum: Programming 11-16-2009
5,623
Posted By tqlam
String copy in C language
Hello,

I have a text file (FILE.txt) that contains the following information:

userAxxx.name@email.com userA
userBxxx.name@email.com userB
userxxCx.name@email.com userC...
2,389
Posted By tqlam
Thank you guys!!! Both replied work great!!!
Thank you guys!!!
Both replied work great!!!
2,389
Posted By tqlam
Need Help to sort text lines
I need to sort input file as below to display as below:

input.txt
User: my_id
File: oracle/scripts/ssc/ssc_db_info
User: your_id
File: pkg_files/BWSwsrms/request
User: your_id...
1,612
Posted By tqlam
Insert Title To Each Lines
I have a command that returns following, but it's missing a title for each line.

YOUR FULL NAME
YOUR ID
YOUR EMAIL
YOUR ADDRESS
YOUR PHONE

Now, I want to add its title to each line:...
25,873
Posted By tqlam
Just want to clarify, according to the...
Just want to clarify, according to the inputFILE.txt, when run the script with the SEARC_STR it will print #02, #04, #05 blocks. e.g. scriptname search.
My code able to print matched plus following...
8,266
Posted By tqlam
shift your input parameters at getopts.
shift your input parameters at getopts.
25,873
Posted By tqlam
Perl how to move pointer to previous line in a txt file?
I have a text file that has blocks of text. Each block starts with ### and ends with End_###.
I wrote a perl script to search a string from line 2 (ignore any line starts with ###) of each block ...
19,367
Posted By tqlam
That's what I got from awk by running your...
That's what I got from awk by running your command:
awK: syntax error near line 1
awk: bailing out near line 1
19,367
Posted By tqlam
(sed '$!d' file.txt) doesn't work for me, it...
(sed '$!d' file.txt) doesn't work for me, it returns "sed: Extra characters after command"

(tail -1 file.txt) only give me the last line of the file.txt, but last line or last few lines in...
19,367
Posted By tqlam
How to get last non-blank line?
Can someone here show how to get the last non-blank line from a text file?

Thank you!
9,089
Posted By tqlam
My cgi script is working fine. Paths in system...
My cgi script is working fine. Paths in system calls are correct.

Here are my system calls from a cgi script:

unless (system("/mypath/A.pl") == 0 ) {
print "<br><br>1 system calls failed...
9,089
Posted By tqlam
System call in CGI not work
I have a cgi script that calls a perl script (A.pl) to do something in backgroup, when run that perl script in command everything works fine, but when it calls by the CGI script, nothing works. I...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 10:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy