hi folks,,
i written a project for my Network University Course,,
there is 2 machine,,(A & B)
1-machine A send a "files" DIR File List to machine B & Machine B send a file name (from DIR List that it get) to Machine A & Machine A send the File to Machine B,,
after that,,Machine B change the Content of File & Send it back & A replaced That,,
2-at last,,I want to get a command from B And Send it to A,,
A execute that (like ls) & return the Result to B,,
That's Just it
it response for job 1 but
i put the "read -p "Enter Your Command :" commands" in file bmachineB.sh,,(for jub 2)
But it didn't work & unbelievably bash did't read & execute that line & just skip that while i use read command before this line & it just worked,,
I upload the 2 Machine Shell File,,
you Can Download that Below the Code
& this is DIR `ls -lR`:
Code:
netWorkProject/:
total 8
drwxrwxr-x 3 reza reza 4096 دسامب 10 01:03 A
drwxrwxr-x 2 reza reza 4096 دسامب 10 01:03 B
new/A:
total 8
-rwxrwxr-x 1 reza reza 1619 دسامب 6 21:31 amachnieA.txt
drwxrwxr-x 2 reza reza 4096 دسامب 10 01:02 files
new/A/files:
total 16
-rw-rw-r-- 1 reza reza 1 دسامب 10 00:29 first.txt
-rw-rw-r-- 1 reza reza 1459 دسامب 9 09:38 forth.txt
-rw-rw-r-- 1 reza reza 1459 دسامب 9 18:40 second.txt
-rw-rw-r-- 1 reza reza 1459 دسامب 9 09:02 third.txt
new/B:
total 4
-rwxrwxr-x 1 reza reza 1806 دسامب 10 00:33 bmachineB.txt
tnx to every one Can Guide me,,