Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> mount?, mount?
post Aug 14 2006, 07:48 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 14-August 06
Member No.: 6,968

hi everyone,

where should i look for this issue ...

i am writing a program that needs to run another program on *another* machine on my network. am i right that i need to look at the 'mount' command??

Go to the top of the page
+Quote Post
post Aug 14 2006, 01:52 PM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165

The mount command puts a storage device into the filesystem/strcutre of the computer - So no.

You can connect to a remoate computer using telnet or ssh, one or other must be running on the computer that you want to conenct to (the server) and yu need to have the relevant client installed on your computer. Which distribution are you using on each computer, and what are you trying to achieve?


Fixed your problem? Let us know! Online Event Management
Go to the top of the page
+Quote Post
post Aug 15 2006, 12:41 AM
Post #3

Its GNU/

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828

I am gonna back up D here, not that he needs it.

Likely what you need is ssh, but that depends on what you're trying to do.

If you have computer called foo, that needs to trigger a program on computer barr you can run this

foo #> ssh barr runCommand

where foo #> represents a promt on foo

That will run the program runCommand on barr. So say its like a backup script, that will cause the script to be executed on barr.

But I think what you want to do is something where you have a program on barr that you want to run ON foo not from foo.

That is far more difficult. Unless there is some major reason you can't, you are far better off installing the program on foo. If you absolutely had to run the binary from barr, you would have to share out the volume on barr using something like NFS, then mount that volume on foo so you could do foo #> /mnt/barr/bin/runCommand from foo. There are a lot of reasons why this would be difficult to do and really tricky. You would have to be aware of all the libraries its gonna use, and what its reading and writing from.

Like I said, you're far better off installing the program on foo and just running it locally. If you still don't understand, or still have questions, tell us what you want to do and we will definitely help you out.

Let me give you an example to try to help you out.

I have this backup script that I wrote. I run the script from my main server that copies everything to my backup server, but before I can copy everything over, the old backup needs to be moved, and things need to be cleaned up.

So, on my backup server I have a script called rotateBackups, and I run that script from my backup script with this command

ssh backup /usr/sbin/roateBackups

The script runs on my backup server, does everything I need, then after its done, my backup script continues on with the backup. If you're looking to achive something like that, ssh is your man.

You can even do cool stuff like this example.

We have a script that runs on one of our boxes and collects a list on banned IP addresses. Those IP address need to get dropped into our firewall so they can be blocked. You can use a pipe to ssh to pass the list.

/usr/sbin/listBanned | ssh firewall addBannedIPs

listBanned shoots out IPs to be banned one per line, and addBannedIPs reads them in one at a time and drops them into our firewall rules. Its pretty nice. ssh is amazingly powerful.

--Jim Lester

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 18th July 2018 - 12:19 AM