Can we preroute a tcp port to a ssh port with the same line of command:
ex.: iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 21 -j -s 10.1.1.0 DNAT --to-destination new_server_address:22
To flora9090
What i mean is: i receive (sql server) many text file in csv format from a linux server. Those files have to be push in 1 table. I'm new with store procedure could you tell me more.
Thanks also to cmmsi for your help.
Hi!
I did a dts task importing 1 file to a table with the text file souce connection, but how to import multi text files in 1 table. I tried with the execute process task (with a dos batch) copy append to 1 file. It work fine but i don't know how to return code to validate.
Help please!
Hi! everyone
I'm a newbe in SQL server 2000.
I need help on how could be the best way to transfer data (+10,000 lines) from a linux server to a SQL 2000 server (some codes would be appreciate).
Here the step i'm thinking about:
1- Server linux send each 10 minutes a text file with data for...
Hi!
I'm trying to match a variable containing a $(dollar sign) and it fail, like
$tst="2->DATA$\n";
$tst1='2->DATA$';
if($tst =~ $tst1){print "yes\n"}else{print "no\n"};
These 2 variables are here to represent data capture in 2 files and compare.
How to fix it ???
Thanks in advance for your help
Ok fishiface your script work fine thanks. I was trying many thing in same time and your solution was too close of my nose... i didn't see it sorry.
For the binmode way, i don't know how to use it with a compress file.
Thanks all for your help and supports.
Sorry i did a mistake
I tried something else:
#!/usr/bin/perl
$var="/home/denis/jf/jftemp/240DU050725230311JF.Z";
open(IN,"zcat $var|") or warn "error";
print "file opened\n";
print $var=<IN>;
close IN;
print "end\n";
and the answer is:
zcat: /home/denis/jf/jftemp/240DU050725230311JF.Z...
Hi!
I have a corrupted compressed file. It opened well but after reading 3 lines it failed and return:
zcat: /home/denis/jf/jftemp/240DU050725230311JF.Z: corrupt input.
How can i control the error message.
Here my script:
#!/usr/bin/perl
$var="/home/denis/jf/jftemp/240DU050725230311JF.Z"...
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.