View previous topic :: View next topic |
Author |
Message |
sligo Tux's lil' helper
Joined: 17 Oct 2011 Posts: 93
|
Posted: Sun Dec 17, 2017 11:32 am Post subject: [SOLVED] Syncing portage with script while having --ask |
|
|
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 |
|
|
blopsalot Apprentice
Joined: 28 Jan 2017 Posts: 231
|
Posted: Sun Dec 17, 2017 11:50 am Post subject: |
|
|
the command "yes" is what youre looking for
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30837 Location: here
|
Posted: Sun Dec 17, 2017 12:00 pm Post subject: |
|
|
In emerge script command add --ask n _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
sligo Tux's lil' helper
Joined: 17 Oct 2011 Posts: 93
|
Posted: Sun Dec 17, 2017 1:47 pm Post subject: |
|
|
blopsalot wrote: | the command "yes" is what youre looking for
|
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 |
|
|
|