Re: [ilugd] What's wrong with it???(Mehul Ved,,,Ashish Shukla)

2008-04-25 Thread devesh
Hi , Well i knew pgrep and it is same as i wrote in single line.NO ISSUE about it. I logged in as 'root' so poweroff could be invoked and path was OK. Moreover the last point I again did 'sh kills.sh' PC WENT OFF. Well, name of script was kills.sh not kill.sh always. cheers, Devesh.

Re: [ilugd] What's wrong with it???

2008-04-25 Thread आशीष शुक्ल Ashish Shukla
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ,--[ On Fri, Apr 25, 2008 at 10:21:31PM +0530, devesh wrote: | hi guys, | | Can anyone find something interesting ? | | Well here is a shell script (kill.sh) : | | *#!/bin/bash | id=`ps -ef | grep wget | grep -v grep | cut -c 10-15` | if [ $id -eq

Re: [ilugd] What's wrong with it???

2008-04-25 Thread Mehul Ved
On Fri Apr 25, 2008 at 10:21:31PM +0530, devesh wrote: > hi guys, > > Can anyone find something interesting ? > > Well here is a shell script (kill.sh) : > > *#!/bin/bash > id=`ps -ef | grep wget | grep -v grep | cut -c 10-15` Probably you can active the same using pgrep? id = `ps -ef | pgrep

[ilugd] What's wrong with it???

2008-04-25 Thread devesh
hi guys, Can anyone find something interesting ? Well here is a shell script (kill.sh) : *#!/bin/bash id=`ps -ef | grep wget | grep -v grep | cut -c 10-15` if [ $id -eq 20698 ] then sleep 10m sh kills.sh else date > kill_time poweroff fi * 1.It was around 4.AM i run it background.And checked