atlantic 0 February 27, 2008 Posted February 27, 2008 · Report post Не знаю, правильно ли я зашел, если нет, перенаправьте pls. Подскажите, как в скрипте задать интерактивную опцию: y (yes) команда требует интерактивного подтверждения, а опции (yes) вроде нет, если конкретно то это >crontab -r remove crontab for <user> ? Как в скрипте сделать подтверждение (описать ввод: y(yes) )? Такое вообще возможно? Спасибо. Quote Share this post Link to post Share on other sites More sharing options...
makc 324 February 27, 2008 Posted February 27, 2008 · Report post Что-нибудь вроде echo yes | crontab -r ... Quote Share this post Link to post Share on other sites More sharing options...
Tanya 5 February 27, 2008 Posted February 27, 2008 · Report post rm -f Quote Share this post Link to post Share on other sites More sharing options...
atlantic 0 February 27, 2008 Posted February 27, 2008 · Report post 2 maks Спасибо, помогло. 2 Tanya нет(не нашел) такой опции(-f) для crontab Quote Share this post Link to post Share on other sites More sharing options...
Tanya 5 February 27, 2008 Posted February 27, 2008 · Report post 2 maks Спасибо, помогло. 2 Tanya нет(не нашел) такой опции(-f) для crontab Это для rm. Может неправильно Вас поняла, что Вы хотите удалить файл... crontab Quote Share this post Link to post Share on other sites More sharing options...