Automatic equo responses?

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Automatic equo responses?

Postby dizwell » Sun Sep 02, 2012 1:27

I hope this isn't a RTFM question, but I am wondering if there is a way to suppress interactivity when doing work with equo?

Specifically, when I do
Code: Select all
equo install rpm ksh
, I am prompted to accept or to reject licenses. I would like option 2 or 3 to be automatically assumed, if possible (I realise both options involve saying you've read the license, and that this would not be true if the response was automated!)

Similarly, when I do
Code: Select all
equo conf update
, I'd like the option to auto-merge everything to be assumed to be the response without it actually prompting me. Is there a way to do that?

I have read the man page for equo, but the --quiet option doesn't seem to suppress this sort of interactivity and I can't see a reference to any switches that might. If it's not do-able, that's fine too: I can try bash script ways of piping a response when needed, but I thought I should find out if the functionality is there or not first. (eg, I know I could for example do
Code: Select all
yes "3"|equo install rpm ksh
)
dizwell
Baby Hen
 
Posts: 8
Joined: Sun Sep 02, 2012 1:16

Re: Automatic equo responses?

Postby batvink » Sun Sep 02, 2012 13:13

I can't test it right now, but can you try if an alias would work?
as root, edit .bashrc in /root folder:
Code: Select all
alias equo install='yes "3" | equo install'

for example...
and if it does work, you can probably do the same with "equo conf update"
Latest (important) news about sabayon?
Watch Rigo's notice board, or surf to:
https://wiki.sabayon.org/index.php?title=Wiki_News
User avatar
batvink
Technological Hen
 
Posts: 405
Joined: Sun Oct 28, 2007 11:44
Location: the netherlands

Re: Automatic equo responses?

Postby dizwell » Mon Sep 03, 2012 1:27

So, you're saying there's no built-in functionality to do this, I guess.

Unfortunately, whilst:
Code: Select all
yes "3" | equo install rpm ksh

...works fine, the same technique doesn't work for equo conf update. The required option there is "-5" (i.e., merge everything without asking), and if I do:
Code: Select all
yes "-5" | equo conf update

...I get an error message that "5" is not a valid answer. Somehow, the minus sign in front of the required response is getting lost. I haven't worked out how to do this yet.
dizwell
Baby Hen
 
Posts: 8
Joined: Sun Sep 02, 2012 1:16


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: adambrums, joeoden and 1 guest