User Profile
Collapse
-
what did I do wrong ?... -
how to write a sevice in c++
Hi I want to write a Servic in C++,
a program which can be in the background and other program can reach it.
can anyone make a simple service chich can take 1 argument int and return the number x2 ?
thanx -
login via SSH to an other mashine..
Hi. I have may questions..
1.can I have a perl script inside a bash script ? IF yes, please make an example.
2.can I use perl to connect via SSH to an other mashine (mashine2), rune some bash commands and then return the result to mashine1 ? do I need FTP as well or it can be done only with SSH connection ? how to do it ? a smal example please.
3.if I can use perl script inside a bash script, how to pass arguments/variabels... -
how to controll end of file..
Hi..
I need to read from File1 and File2, and write the first row in file1 + first row in file2 in file3.
if file1 ends before file2, then the program is finnished,
if file2 ends before file1 then it should begin from the beginning untill file 1 ends,
the code I have now is not complete. can you please help me to finnish it ?
thanx.
...Code:#!/usr/bin/perl open(file1, "SA2007"); open(file2,
-
What I ment was how to write it in one line in a command prompt and not have it as an script.
ex.:
bash$: perl the scrit as one line here...Leave a comment:
-
how to write it in one line..
Hi I have a litle script and want to write it in one line
I dont know how to do that .. here is the script.
Code:#!/usr/bin/perl open(FILE1, "<marenden"); open(FILE3, ">>result"); while($line = <FILE1>) { chop($line); $temp=`grep $line file2.txt`; print FILE3 $temp; } -
store a command to a variable.
Hi
I need to store a command or a command combination to an Perl Variable, and then execute it in perl,
how to do that ?
I tried to put ls /etc/ tp $com and then store the result to $h but it did not wok.
the most importent part for me is the first row "$com=`ls /etc/`;" but it seams to be the wrong way to do it. please help
$com=`ls /etc/`;
$h=`$com`;
print $h; -
perl and MSaceess MDB file..
Is there any way to connect to an MDB file from perl to an MDB file and read and write to it AND change the colomn names in the tables and add or remove commums/tables ?
I am trying to make a perl script which can connct to an standalone MDB file and there will be menyes for add table, drop table and ....
is it possible ?
can I have som e help how to connect to suck a file and ( just need litle help) I want... -
okay.. that worked, but The sart and the end did not exist in the answer,
how can I do the same thing but having start and the end with the text ?...Leave a comment:
-
.net 2.0 or 3.0 on apache ??
Is there a way to run .NET webapplication 2.0 or 3.0 on apache webserver on a win or linux mashine ? -
how to change an mdb file ..
Hi..
if I have an mdb file which is empty, or only one table,
or assume that I have an mdb file, and I dont have Microsoft access databas program,
Is that possible to drop tables, values inside the tables, and creat other tables in that file ?
with help of some programming language. or som e other way ...
I know C++ and Perl. -
hi..
that was imporesting :-)
can you please describe for me what
perl -pe 's/.*\b(\d+)\s*$/$1 /' report.txt
does ? part by part.
thanx...Leave a comment:
-
how to catch some system commando..
Hi I am wondering how to catch a system commandto to a variable..
EX.
if I want to execute somthing like :
system("run_a_s cript.sh");
or system("ls -la");
and I want the output of the "run_a_script.s h" to a variable $x ? -
change part of a text..
I have string $x
print $x; gives me
1944061131500;2 0061201;2006112 4;ALE;
how can i change the format of the string to
1944061131500;2 0061201;2006-11-24;ALE;
? -
okay..
I can use the
perl -0777 -ne 'print "$1\n" while /START(.*?)END/gs' file1
BUT I want a condition too, if there is a word "XXXXX" between start and end, then it should print it else dont print
how to write the conditon ?...Leave a comment:
-
finding text in perl
Hi..
I have a textfile like this...
*************** **************
blablalba
*****
begin
somve value 3 5 XXX
blablabla
**
bla
somve value 4 6 WWW
end
*************** *************
*************** **************
blablalba
*****
begin
somve value 3 5 XXX
blablabla
**
bla
somve value 4 6 YYY...
No activity results to display
Show More
Leave a comment: