Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Syncing portage with script while having --ask
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sligo
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2011
Posts: 93

PostPosted: Sun Dec 17, 2017 11:32 am    Post subject: [SOLVED] Syncing portage with script while having --ask Reply with quote

Hello, i would like to use a cron command or script to sync portage once a day. But i have set this in my make.conf and i would like to keep it for everything else:

Code:
EMERGE_DEFAULT_OPTS="--ask --verbose --with-bdeps=y"


The command or script will get stuck when asking if portage should really be updated. Anyone knows of an option or way to push the y into the command or remove the ask option from sync only?

Thanks allot for any help!


Last edited by sligo on Sun Dec 17, 2017 1:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Sun Dec 17, 2017 11:50 am    Post subject: Reply with quote

the command "yes" is what youre looking for

Code:
yes | emerge ....
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Sun Dec 17, 2017 12:00 pm    Post subject: Reply with quote

In emerge script command add --ask n
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sligo
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2011
Posts: 93

PostPosted: Sun Dec 17, 2017 1:47 pm    Post subject: Reply with quote

blopsalot wrote:
the command "yes" is what youre looking for

Code:
yes | emerge ....


Thanks allot for your suggestion but this is not working. I am always ending up with this message:
Quote:
!!! "--ask" should only be used in a terminal. Exiting.

Instead i've finally figured how to get it done. I'm now using eix and use this command:

Code:
/usr/bin/eix-sync -C --ignore-default-opts > /dev/null 2>&1


Thanks allot for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum