The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Doubt salil2012 UNIX for Dummies Questions & Answers 1 03-05-2009 11:33 AM
One doubt namishtiwari Shell Programming and Scripting 2 06-30-2008 03:23 AM
doubt in awk jisha Shell Programming and Scripting 4 04-16-2008 05:02 AM
doubt in AWK abnirmal Shell Programming and Scripting 4 05-08-2007 06:27 PM
doubt in sed matrixmadhan UNIX for Dummies Questions & Answers 3 08-03-2005 12:34 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-21-2009
balamv balamv is offline
Registered User
  
 

Join Date: May 2008
Posts: 24
ssh doubt..

Hi,

I want to remove some package in a remote server, I am executing as the below script

Code:
ssh -q REMOTE_SERVER "pkgrm PKGNAME"

but it is asking can you confirm for the removal of pkg?

so is this respose will go to REMOTE_SERVER and remove the package?

Thanks

Bala

Use CODE-tags when displaying code, data or logs to enhance readability and to preserve formatting like indention etc., ty.

Last edited by zaxxon; 07-21-2009 at 05:53 AM.. Reason: code tags
  #2 (permalink)  
Old 07-21-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,311
You can try:


Code:
ssh -q REMOTE_SERVER "yes| pkgrm PKGNAME"

Or check the man page of pkgrm for a non-interactive flag.
  #3 (permalink)  
Old 07-21-2009
balamv balamv is offline
Registered User
  
 

Join Date: May 2008
Posts: 24
Thank you so much

---------- Post updated at 05:50 PM ---------- Previous update was at 04:34 PM ----------

Hi,

Is this correct? I am getting the below error..


/sbin/sh: yes: not found
  #4 (permalink)  
Old 07-21-2009
RiSk RiSk is offline
Registered User
  
 

Join Date: May 2008
Posts: 20
Quote:
Originally Posted by balamv View Post
Thank you so much

---------- Post updated at 05:50 PM ---------- Previous update was at 04:34 PM ----------

Hi,

Is this correct? I am getting the below error..


/sbin/sh: yes: not found

go to the remote machine and type "which yes" if you get nothing back you do not have the command "yes"

Im guessing the remote box is a Sun server as your using pkgrm, and I think "yes" is in /bin/
Reply

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 07:54 PM.


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