balamv
1
Hi,
I want to remove some package in a remote server, I am executing as the below script
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.
zaxxon
2
You can try:
ssh -q REMOTE_SERVER "yes| pkgrm PKGNAME"
Or check the man page of pkgrm for a non-interactive flag.
balamv
3
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
RiSk
4
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/