Search Results

Search: Posts Made By: chercheur857
1,549
Posted By chercheur857
Are you sure this is the cause of the error ? ...
Are you sure this is the cause of the error ?
i'm not connected now to the machines , i'will test it tomorrow
but i think this is not the cause.. I am not convinced...
1,549
Posted By chercheur857
But i have tested ssh root@$machine -x with other...
But i have tested ssh root@$machine -x with other command and it works correctly!!
1,549
Posted By chercheur857
What's the difference please between : ssh...
What's the difference please between :
ssh root@$machine -x " scp /home/file.txt root@$machine1:/home && rm -r /home/file.txt"

and

ssh -x root@$machine " scp /home/file.txt...
1,549
Posted By chercheur857
Problem with SSH
Hello,
i have 10 machines, machine A execute this script:
This is my script:

nb_lignes=`wc -l $1 | cut -d " " -f1`
for i in $(seq $(($nb_lignes - 1)) )
do
machine=`head $1 -n $i | tail -1`...
9,716
Posted By chercheur857
Thank you so much for help :)
Thank you so much for help :)
9,716
Posted By chercheur857
where X and Y are digits? That means: do you have...
where X and Y are digits? That means: do you have -XY. once and only once in each line?

Yes X and Y are digits, XY no redendant in other line (once and only once in each line)
9,716
Posted By chercheur857
Thank you Lem so much for help, i try to test...
Thank you Lem so much for help,
i try to test your script on this file:

xxxxxxxx-94.yyyyy.zzzzzzzz.aa
xxxxxxxx-95.yyyyy.zzzzzzzz.aa
xxxxxxxx-96.yyyyy.zzzzzzzz.aa
xxxxxxxx-97.yyyyy.zzzzzzzz.aa...
9,716
Posted By chercheur857
i have tested your code in my example but it...
i have tested your code in my example but it display nothing
i run ./program Myfile 25 50 52
budyfile contain
xxxxxxxx-51
xxxxxxxx-53

2 lines (but 25% of lines =1)
Have you an idea please ?...
1,488
Posted By chercheur857
Did you mean ?! ssh root@$machine -x " if [...
Did you mean ?!

ssh root@$machine -x " if [ -f file.txt ] scp /home/file.txt root@$machine1:/home && rm -r /home/file.txt"
1,488
Posted By chercheur857
Verifying if a file exist (script shell)
Hello,

This is my code:
nb_lignes=`wc -l $1 | cut -d " " -f1`
for i in $(seq $(($nb_lignes - 1)) )
do
machine=`head $1 -n $i | tail -1`
machine1=`head $1 -n $nb_lignes | tail -1`
ssh ...
9,716
Posted By chercheur857
@Lem Thank you so much for help Please i'd like...
@Lem Thank you so much for help
Please i'd like to apply your program on this file: Myfile
xxxxxxxx-50
xxxxxxxx-51
xxxxxxxx-52
xxxxxxxx-53
./program Myfile 10 #25 percent
My question...
6,965
Posted By chercheur857
ssh root@$machineA -x "java ....." and wait 10...
ssh root@$machineA -x "java ....." and wait 10 seconds and execute
ssh root@$machineB -x "java ....."


ssh root@$machineA -x "java ....." : create a node with Pastry overlay
wait 10 secondes...
6,965
Posted By chercheur857
i want execute ssh root@$machine1 -x "java ....."...
i want execute ssh root@$machine1 -x "java ....." and wait 10 seconds for example and execute
ssh root@$machine2 -x "java ....." automatically without the ctrl+C

in the terminal i have the...
6,965
Posted By chercheur857
Here is my problem: for i in $(seq $nb_lignes)...
Here is my problem:
for i in $(seq $nb_lignes) # a list of machines
do
machine=`head $1 -n $i | tail -1`
ssh root@$machine -x "java ....."
done
i have three machines: A,B and C
"A " run the...
6,965
Posted By chercheur857
i try //command java & done wait ...
i try

//command java &
done
wait

but i have a pb
each //command java is executed on a machine (i have 2 machines a and b and $nb_lignes=2)
i run the script on machine c , the fist...
6,965
Posted By chercheur857
For loop in parallel
Hello,

My script shell is:


for i in $(seq $nb_lignes)

do
//command java
done



Please, how can i execute all iteration in parallel ?



Thank you so much.
Forum: Programming 10-09-2012
1,206
Posted By chercheur857
with fwrite() ? Thank you.
with fwrite() ?
Thank you.
Forum: Programming 10-09-2012
1,206
Posted By chercheur857
My problème is: i have written a client and a...
My problème is: i have written a client and a server in C, the client send a char to the server (for example "A") the server increments and send the char "B" to the client etc...

i'd like to:
...
Forum: Programming 10-09-2012
1,206
Posted By chercheur857
Serialization of a char buffer
Hello,


In C, is it possible to serialize a buffer, and save the buffer in a file like in java ? and how ?




Thank you so much.
Forum: UNIX and Linux Applications 10-09-2012
3,212
Posted By chercheur857
My code is so complicated , many classes with...
My code is so complicated , many classes with many .jars , just a question please:
what's the version of openjdk6 (when i write $ java -version)? for the moment i can't acced to the machine where i...
Forum: UNIX and Linux Applications 10-09-2012
3,212
Posted By chercheur857
the same code run correctly on a machine with...
the same code run correctly on a machine with jdk: java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.10.1) OpenJDK Client VM (build 19.0-b09, mixed mode,...
Forum: UNIX and Linux Applications 10-09-2012
3,212
Posted By chercheur857
i have added this instruction to my code: The...
i have added this instruction to my code:
The version is 1.6.0_20
with this version of jdk the renameTo works well
but with openjdk-6 not
how can i do please ?
see this url please:...
Forum: UNIX and Linux Applications 10-09-2012
3,212
Posted By chercheur857
I have a question please about jdk, i have used...
I have a question please about jdk, i have used in my code the function renameTo in my code java,
I ask please is that possible that a function in java operates correctly with a version of jdk and...
Forum: UNIX and Linux Applications 10-09-2012
3,212
Posted By chercheur857
Version of Jdk on my machine
Hello,

Please, i ask what command linux used to know the version of jdk installed on my machine ?


Thank you so much.
9,716
Posted By chercheur857
@Lem: please can you explain me this loop by an...
@Lem: please can you explain me this loop by an example

for ((i=0;i<lim;i++)); do
num=$(( $RANDOM % $range + 1 ));
arr[$i]=$num;
for ((j=0;j<i;j++)); do
...
Showing results 1 to 25 of 98

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