Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread pandiyan R
hi this is pandiyan i installed fedora in my pc  now i want to know how
to connect peer to peer connection in it...
in my home pc i installed ubundu then my laptop i have fedora i have to
transfer data between these to using the peer to peer cable...
can you help me how to do thi.

regards.
Pandiyan.R

On Mon, Oct 25, 2010 at 9:33 PM, Tha.Suresh jemenisur...@gmail.com wrote:

  Sometimes we require a particular job to stop for a certain period
 and start again.

 Most of us familiar with the KILL command, But here is another cool
 feature of the KILL command,

 $ kill -STOP pid

 $ kill -CONT pid

 This 'll stop the given PID since it has been not restarted with the
 command -CONT.

 :-)

 Ex:

 $ kill -STOP 9952 (For Stop)

 $ kill -CONT 9952 (For Continue)


 --
 Regards,
 Tha.Suresh

 Kanchi Linux User Group Rocks 
 http://kanchilug.wordpress.com

 My experiences with Linux are here,
 http://thasulinux.wordpress.com
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Abishek Goda
Hi,

 hi this is pandiyan i installed fedora in my pc  now i want to know how
 to connect peer to peer connection in it...
 in my home pc i installed ubundu then my laptop i have fedora i have to
 transfer data between these to using the peer to peer cable...
 can you help me how to do thi.

You can just add an ethernet cable between the PC eth0 and laptops
eth0, configure them with custom ip addresses and rsync/scp the files
you need. I think that should work most of the time.

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Abishek Goda
hi,

On Tue, Oct 26, 2010 at 1:53 PM, pandiyan R pandiya...@gmail.com wrote:
 hi this is pandiyan i installed fedora in my pc  now i want to know how
 to connect peer to peer connection in it...
 in my home pc i installed ubundu then my laptop i have fedora i have to
 transfer data between these to using the peer to peer cable...
 can you help me how to do thi.

btw, though I replied (my mistake too), you should have started a new
thread. I doubt the question is related to the thread!

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread pandiyan R
if you know the steps means please because i am new to linux.


On Tue, Oct 26, 2010 at 1:56 PM, Abishek Goda goda.abis...@gmail.comwrote:

 Hi,

  hi this is pandiyan i installed fedora in my pc  now i want to know
 how
  to connect peer to peer connection in it...
  in my home pc i installed ubundu then my laptop i have fedora i have to
  transfer data between these to using the peer to peer cable...
  can you help me how to do thi.

 You can just add an ethernet cable between the PC eth0 and laptops
 eth0, configure them with custom ip addresses and rsync/scp the files
 you need. I think that should work most of the time.

 Abishek
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread pandiyan R
On Tue, Oct 26, 2010 at 2:01 PM, pandiyan R pandiya...@gmail.com wrote:

 if you know the steps means please because i am new to linux.


 On Tue, Oct 26, 2010 at 1:56 PM, Abishek Goda goda.abis...@gmail.comwrote:

 Hi,

  hi this is pandiyan i installed fedora in my pc  now i want to know
 how
  to connect peer to peer connection in it...
  in my home pc i installed ubundu then my laptop i have fedora i have to
  transfer data between these to using the peer to peer cable...
  can you help me how to do thi.

 You can just add an ethernet cable between the PC eth0 and laptops
 eth0, configure them with custom ip addresses and rsync/scp the files
 you need. I think that should work most of the time.

 Abishek
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Abishek Goda
Hi,

 if you know the steps means please because i am new to linux.
I will try.

 You can just add an ethernet cable between the PC eth0 and laptops
 eth0, configure them with custom ip addresses and rsync/scp the files
 you need. I think that should work most of the time.

Just add a ethernet cable between the two machines. That is
straightforward, right?

On each machine, as root, do the following.

machine1 # ifconfig eth0 192.168.1.2
machine2 # ifconfig eth0 192.168.1.3

you should be able to ping the machines from one another. Then rsync the folders

machine1 # rsync -r machine2:/path/to/files .

should do the trick. Again, this is not the only way. I am not sure
what GUI options are available. Some research on google should give
you all the methods you can try.

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread pandiyan R
thank you i will try


On Tue, Oct 26, 2010 at 2:12 PM, Abishek Goda goda.abis...@gmail.comwrote:

 Hi,

  if you know the steps means please because i am new to linux.
 I will try.

  You can just add an ethernet cable between the PC eth0 and laptops
  eth0, configure them with custom ip addresses and rsync/scp the files
  you need. I think that should work most of the time.

 Just add a ethernet cable between the two machines. That is
 straightforward, right?

 On each machine, as root, do the following.

 machine1 # ifconfig eth0 192.168.1.2
 machine2 # ifconfig eth0 192.168.1.3

 you should be able to ping the machines from one another. Then rsync the
 folders

 machine1 # rsync -r machine2:/path/to/files .

 should do the trick. Again, this is not the only way. I am not sure
 what GUI options are available. Some research on google should give
 you all the methods you can try.

 Abishek
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Girish Venkatachalam
On Tue, Oct 26, 2010 at 2:12 PM, Abishek Goda goda.abis...@gmail.com wrote:

 machine1 # rsync -r machine2:/path/to/files .

 should do the trick. Again, this is not the only way. I am not sure
 what GUI options are available. Some research on google should give
 you all the methods you can try.


I dunno if cross and straight cables are relevant anymore.

Arun told me that nowadays this is a non issue.

We can also connect machines together with a null modem serial
cable but that is slower, messy and of course more complex.

-Girish


-- 
Gayatri Hitech

http://gayatri-hitech.com
gir...@gayatri-hitech.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Abishek Goda
Hi,

 I dunno if cross and straight cables are relevant anymore.
Yep. We do this many times during testing.

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Kenneth Gonsalves
On Tue, 2010-10-26 at 14:25 +0530, Abishek Goda wrote:
  I dunno if cross and straight cables are relevant anymore.
 Yep. We do this many times during testing. 

depends on the ethernet ports - some are able to distinguish between
cross and straight wiring - older ones may not
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Abishek Goda
Hi,

 depends on the ethernet ports - some are able to distinguish between
 cross and straight wiring - older ones may not

hmm, that might be. but then for machines that are not older than 2-3
years, this should not be an issue.

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Kenneth Gonsalves
On Tue, 2010-10-26 at 14:45 +0530, Abishek Goda wrote:
  depends on the ethernet ports - some are able to distinguish between
  cross and straight wiring - older ones may not
 
 hmm, that might be. but then for machines that are not older than 2-3
 years, this should not be an issue. 

the last time I did this was in 2007 - the new machines we had bought
then had no problem - the others had.
-- 
regards
KG
http://lawgon.livejournal.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: Connecting two machines directly. Was Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Yoganandam Goteti
On Tue, 2010-10-26 at 14:20 +0530, Girish Venkatachalam wrote: 
 On Tue, Oct 26, 2010 at 2:12 PM, Abishek Goda goda.abis...@gmail.com wrote:
 
  machine1 # rsync -r machine2:/path/to/files .
 
  should do the trick. Again, this is not the only way. I am not sure
  what GUI options are available. Some research on google should give
  you all the methods you can try
I am using wifi to do this between my desktop and laptop works very well
no messing with any settings at all. Most distros detect wifi adaptors
with out a prob. On my desktop I use dlink usb and the laptop has built
in intel pro My Airtel broadband  has a wifi router.


 
 I dunno if cross and straight cables are relevant anymore.
 
 Arun told me that nowadays this is a non issue.
 
 We can also connect machines together with a null modem serial
 cable but that is slower, messy and of course more complex.
I used that them extensively during 90's and early 2000 yes they are slow 
compared to the 10/100 Ether net or wifi of today.;-)
GY
 -Girish
 
 




___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-26 Thread Chandrashekar Babu

On 25/10/10 9:33 PM, Tha.Suresh wrote:

  Sometimes we require a particular job to stop for a certain period
and start again.

Most of us familiar with the KILL command, But here is another cool
feature of the KILL command,

$ kill -STOPpid

$ kill -CONTpid


On the same context, an interesting shell script snippet that I remember 
using at my earlier organization (to tick off a bunch of

users who were running some wav to mp3 encoding tools on a
multi-user server) as below (save as schedule.sh and try):
--8--8
#!/bin/sh
SLEEPTIME=$1
shift
RUNTIME=$1
shift
PID=$*

while true
do
kill -STOP $PID
sleep $SLEEPTIME
kill -CONT $PID
sleep $RUNTIME
done
8-8
To run at the shell prompt,
   pgrep lame | xargs ./schedule.sh 5 1

Have fun!

--
Chandrashekar Babu.,
http://www.chandrashekar.info/
http://www.slashprog.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-25 Thread Tha.Suresh
 Sometimes we require a particular job to stop for a certain period
and start again.

Most of us familiar with the KILL command, But here is another cool
feature of the KILL command,

$ kill -STOP pid

$ kill -CONT pid

This 'll stop the given PID since it has been not restarted with the
command -CONT.

:-)

Ex:

$ kill -STOP 9952 (For Stop)

$ kill -CONT 9952 (For Continue)


--
Regards,
Tha.Suresh

Kanchi Linux User Group Rocks 
http://kanchilug.wordpress.com

My experiences with Linux are here,
http://thasulinux.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [Tip] Temporarily stop/start a process in linux

2010-10-25 Thread ashwin kesavan
On 25 October 2010 21:33, Tha.Suresh jemenisur...@gmail.com wrote:
snip /
 Ex:

 $ kill -STOP 9952 (For Stop)

 $ kill -CONT 9952 (For Continue)

Wow this is cool. Does it work well with tomcat ? Now i dont need to
kil -9 tomcat pid to stop tomcat.

with regards,
ashwin
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc