[comp.unix.questions] cu - cant seem to get ~%take working

cs3ea3aq@maccs.dcss.mcmaster.ca (Kerr PM) (11/01/90)

I am trying to transfer a file from school to my home, ~%put works fine
but when I try and use ~%take <file> I get the following message
stty -echo; if test -r <file>; then (echo '~>':<file>; cat <file>;echo '~>');
else echo cant\'t open: <file>; fi; stty echo
badly placed ()'s
stty -echo; if test -r <file>; then (echo '~>':<file>; cat <file>;echo '~>');else 

cpcahil@virtech.uucp (Conor P. Cahill) (11/01/90)

In article <272F1280.18291@maccs.dcss.mcmaster.ca> cs3ea3aq@maccs.dcss.mcmaster.ca (Kerr        PM) writes:
>
>I am trying to transfer a file from school to my home, ~%put works fine
>but when I try and use ~%take <file> I get the following message
>stty -echo; if test -r <file>; then (echo '~>':<file>; cat <file>;echo '~>');
>else echo cant\'t open: <file>; fi; stty echo
>badly placed ()'s

The problem is that your loging shell on the foreign system (where you want to 
take the data from) is the C shell.  start up a borne/korn shell before you
attempt the ~%take.

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 

max@lgc.com (Max Heffler) (11/03/90)

In article <272F1280.18291@maccs.dcss.mcmaster.ca> cs3ea3aq@maccs.dcss.mcmaster.ca (Kerr        PM) writes:
>
>I am trying to transfer a file from school to my home, ~%put works fine
>but when I try and use ~%take <file> I get the following message
>stty -echo; if test -r <file>; then (echo '~>':<file>; cat <file>;echo '~>');
>else echo cant\'t open: <file>; fi; stty echo
>badly placed ()'s
>stty -echo; if test -r <file>; then (echo '~>':<file>; cat <file>;echo '~>');else 

When I have had this problem, it was an interaction problem with the C shell.
Try using the Bourne shell just before this operation.  It works for me...
--
Max Heffler			internet: max@lgc.com
Landmark Graphics Corp.		uucp: ..!uunet!lgc!max
333 Cypress Run, Suite 100      phone: (713) 579-4751
Houston, Texas  77094