Find the answer to your Linux question:
Results 1 to 3 of 3
IS there a quick way to send two files below in one command? ./tossfile hostip file1.c ./tossfile hostip file2.c while I am running the server as ./catchfile I can send ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Location
    Buffalo, NY
    Posts
    25

    Sending two files in one command?

    IS there a quick way to send two files below in one command?

    ./tossfile hostip file1.c
    ./tossfile hostip file2.c

    while I am running the server as ./catchfile

    I can send one file but for some reason I can't send file1.c and file2.c at the same time.....

  2. #2
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    259
    Do you mean you want to start one instance of "tossfile" and have it act on both files ?
    If so, the "tossfile" application must be able to accept multiple filename parameters.
    If it only accepts one filename parameter then it can only initiate one session at a time.

    You could also use the "&&" or "||" to put both commands on a single line



    Men occasionally stumble over the truth,
    but most of them pick themselves up
    and hurry off as if nothing had happened.

    Winston Churchill


    ... then the Unix-Gods created "man" ...

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Location
    Buffalo, NY
    Posts
    25
    Well i got it figured out, I had to edit the file and commented out and end the socket early.

    Thanks for the help anyways!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...