t22918@ursa.calvin.edu (Matt Ranney) (02/19/91)
I've been experimenting with the rsh command latlely, and have a few problems. I have 2 accounts here, one on a SparcStation (fast enough), and one on a Sun-3 (terribly slow). The Sparc is where I do almost all of my stuff, but the class I'm in now (Ada) requires the use of the Sun-3, because for some reason, they coulnd't find a cheap Ada compiler for a 4. Anyway, when more than one person gets on there, the response time is unberably slow. What I'd like to do is to be able to edit the source on the Sparc, and have it do it's 3 minute compilation on the Sun-3. So, I thought, "well, I'll just change my Makefile to this:" ban: ban.tof rsh ucpsc adalib link ban ban.tof: ban.ada rsh ucpsc tada -Op0 ada/ban.ada where ucpsc is the remote Sun-3. This does call the compiler correctly, except the sourcefile that it's looking for is still on the Sun-3. (I slap myself on the head for not thinking this at first) Any suggestions? -- Matt Ranney "There are a few occasions where you do t22918@ursa.calvin.edu need to use a 'GOTO'... but... well mranney@wybbs.mi.org you didn't just hear me say that." mranney@mole.ai.mit.edu (or any other FSF machine) -Dr. Joel Adams
weimer@garden.kodak.COM (Gary Weimer (588-0953)) (02/20/91)
In article <t22918.666934887@ursa>, t22918@ursa.calvin.edu (Matt Ranney) writes: |> ... So, I thought, "well, I'll just change my |> Makefile to this:" |> |> ban: ban.tof |> rsh ucpsc adalib link ban |> |> ban.tof: ban.ada |> rsh ucpsc tada -Op0 ada/ban.ada |> |> where ucpsc is the remote Sun-3. This does call the compiler |> correctly, except the sourcefile that it's looking for is still on the |> Sun-3. (I slap myself on the head for not thinking this at first) ^^^^^ |> |> Any suggestions? Assuming this 'Sun-3' should be 'Sun-4': "Best" solution: usr NFS. If your doing your work in your account on the Sun4, have the Sun3 mount that file system (preferably with the same path). This will make the files available on both machines. "Other" solution: have your make file copy the source to the Sun3. NEXT PROBLEM: rsh will put you in your home directory, not where your source files are. This can be fixed by changing your makefile to: ban: ban.tof rsh ucpsc cd $(REMOTEDIR); adalib link ban ban.tof: ban.ada rsh ucpsc cd $(REMOTEDIR); tada -Op0 ada/ban.ada LAST PROBLEM (yeah--right (-: ) The executables will have to be run on the Sun3. weimer@ssd.kodak.com ( Gary Weimer )
prc@erbe.se (Robert Claeson) (02/21/91)
In article <1991Feb19.194104.1337@ssd.kodak.com> weimer@ssd.kodak.com writes: >NEXT PROBLEM: >rsh will put you in your home directory, not where your source files >are. This can be fixed by changing your makefile to: Or use "on" innstead of "rsh". On executes a command on a remote machine, passes environment variables and automatically mounts the directory you're executing the "on" command from on the remote machine (this is done via NFS). -- Robert Claeson Disclaimer: I represent myself and not my employer.