<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">…. is movit.sh set up with the right permissions?<div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 23, 2019, at 12:39 PM, <a href="mailto:admin@lctn.org" class="">admin@lctn.org</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div class="">I have a simple bash script (ws.sh), with the following 2 commands:</div><div class=""><br data-mce-bogus="1" class=""></div><div class="">#!/bin/bash<br class=""><br class="">tshark -i enp1s0 -a duration:60 -w /home/raymond/capture.pcapng</div><div class=""><br class="">wait</div><div class=""><br class="">/home/raymond/movit.sh</div><div class=""><br data-mce-bogus="1" class=""></div><div class="">Movit.sh:</div><div class=""><br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div class="">#!/bin/bash<br class="">mv capture.pcapng $(date +%F-%H:%M)1.pcapng && touch capture.pcapng<br class="">echo "All Done!"</div><div class=""><br data-mce-bogus="1" class=""></div><div class="">The first command always works properly but the second does not run via cron. However, running the script (ws,sh) via the command line executes properly. I have tried sleep and wait between commands but nothing works, so far.</div><div class=""><br data-mce-bogus="1" class=""></div><div class="">Ideas?</div><div class=""><br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div data-marker="__SIG_PRE__" class="">Raymond Norton<br class="">LCTN<br class="">952.955.7766</div></div></div>_______________________________________________<br class="">TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br class=""><a href="mailto:tclug-list@mn-linux.org" class="">tclug-list@mn-linux.org</a><br class="">http://mailman.mn-linux.org/mailman/listinfo/tclug-list<br class=""></div></blockquote></div><br class=""></div></body></html>