Ask Your Question

No input with rosclean purge?

asked 2018-02-01 05:50:16 -0500

Cerin gravatar image

updated 2018-02-01 05:50:48 -0500

I'd like to implement a scheduled process to periodically run rosclean purge when my logs get too big, but even though it's a command line tool, it seems to be hard-coded to require a user to answer a "yn" prompt. Most command line programs have a "--noinput" or "--assume-yes" option to allow the tool to be used in an automated process. How do you do this with rosclean?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-01 06:11:02 -0500

mgruhler gravatar image

why not ask rosclean itself?

rosclean purge -h directly points you to the -y flag

edit flag offensive delete link more


Ah, thanks. I had checked rosclean -h but not rosclean purge -h.

Cerin gravatar imageCerin ( 2018-02-01 12:22:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-02-01 05:50:16 -0500

Seen: 228 times

Last updated: Feb 01 '18