I assume this is in your raymond user's crontab?  It /should/ be running in
your home directory, but maybe you need to add a cd before running mv (or
use absolute paths in your mv)

You could append " 2>&1 /path/to/some/log" to the line in your crontab to
get output/errors into a log to try troubleshooting that way.

Else, I don't immediately see any obvious errors

On Wed, Oct 23, 2019 at 12:48 PM <admin at lctn.org> wrote:

> I have a simple bash script (ws.sh), with the following 2 commands:
>
> #!/bin/bash
>
> tshark -i enp1s0 -a duration:60 -w /home/raymond/capture.pcapng
>
> wait
>
> /home/raymond/movit.sh
>
> Movit.sh:
>
>
> #!/bin/bash
> mv capture.pcapng $(date +%F-%H:%M)1.pcapng && touch capture.pcapng
> echo "All Done!"
>
> 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.
>
> Ideas?
>
>
>
> Raymond Norton
> LCTN
> 952.955.7766
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20191023/2125ef2b/attachment.html>