Re: bash script not working properly
Shawn Fertch <[email protected]>
| Newsgroups | gmane.user-groups.linux.tclug |
|---|---|
| Message-ID | <CAJCD7j5ZXDxVBuF+ewTqDj9s4ZV=5Q0u219KPJWSsa8z58F6Rw@mail.gmail.com> |
I would into profile settings, variables, and if it errors because it is expecting a tty On Wed, Oct 23, 2019, 13:12 Ryan Coleman <[email protected]> wrote: > …. is movit.sh set up with the right permissions? > > > > On Oct 23, 2019, at 12:39 PM, [email protected] 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 > [email protected] > http://mailman.mn-linux.org/mailman/listinfo/tclug-list > > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > [email protected] > http://mailman.mn-linux.org/mailman/listinfo/tclug-list > _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota [email protected] http://mailman.mn-linux.org/mailman/listinfo/tclug-list