The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
kaydream kaydream is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 10
please help

please help to resolve the output of below scrypt
Code:
    
    File=/etc/inittab        
    Search=Ntp.Cntl        
    if [ -n "`fgrep $Search $File`" ]
    then
     LineNr=`fgrep -n $Search $File |cut -d: -f1` 
     Cmd="$LineNr s/^# //\nw\nq"     
     echo "$Cmd" | ed -s $File >/dev/null  
    else
     LineNr=`fgrep -n InfPmBoot $File | cut -d: -f1`
     Line="pm:2:once:/sys/inf/InfPmCall /sys/inf/Ntp.Cntl stop"
     Line="$Line >/dev/null 2>&1"    
     Cmd="$LineNr a\n$Line\n.\nw\nq"    
     echo "$Cmd" | ed -s $File      
    fi
  #2 (permalink)  
Old 2 Weeks Ago
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 440
1. You should not just say please help.

2. What is the problem ? What do you want us to solve ?
If you cannot take time to explain the problem, why we should spend time in solving the issue ?

3. You should be penalized by the moderators for doing like this ..
  #3 (permalink)  
Old 2 Weeks Ago
Shazin Shazin is offline
Registered User
  
 

Join Date: Jul 2009
Location: Gurgaon, India
Posts: 77
What sort of post is this.Keep the forum rules in mind..

You should respect this forum and its members.
  #4 (permalink)  
Old 2 Weeks Ago
vbe's Avatar
vbe vbe is online now Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,569
Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

For it does very much as a disguised bumping method, see:
what is output of this scrypt
how this scrypt work

---------- Post updated at 17:13 ---------- Previous update was at 17:06 ----------

And so I will close the thread...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0