From woodbrian77 at gmail.com Wed Oct 2 11:49:48 2019 From: woodbrian77 at gmail.com (Brian Wood) Date: Wed, 2 Oct 2019 11:49:48 -0500 Subject: [tclug-list] Stream Control Transmission Protocol (SCTP) Message-ID: Shalom I've been thinking of converting my TCP-based code generator to SCTP. Finding info on SCTP is not as easy though as TCP. Have you used SCTP? On openSUSE, I can compile this: int sd=::socket(PF_INET,SOCK_STREAM,IPPROTO_SCTP); with just this file: https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/Buffer.hh but on FreeBSD, I have to also #include . Are there other Posix systems where you have to include that file? I read that "SCTP frequently sends heartbeat messages to test the state of connection." I'm not sure I want it to do that frequently. Is that configurable? Thank you in advance. Brian Ebenezer Enterprises - Want to get out of Murderapolis? I'm looking for a roommate in the Roseville area. http://webEbenezer.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbrian77 at gmail.com Sun Oct 6 10:38:29 2019 From: woodbrian77 at gmail.com (Brian Wood) Date: Sun, 6 Oct 2019 10:38:29 -0500 Subject: [tclug-list] Stream Control Transmission Protocol (SCTP) In-Reply-To: References: Message-ID: On Wed, Oct 2, 2019 at 11:49 AM Brian Wood wrote: > Shalom > > I've been thinking of converting my TCP-based code > generator to SCTP. Finding info on SCTP is not as > easy though as TCP. > I've made some progress with this, mainly in the 'login' function: https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/tiers/cmwA.cc > Have you used SCTP? On > openSUSE, I can compile this: > > int sd=::socket(PF_INET,SOCK_STREAM,IPPROTO_SCTP); > > with just this file: > https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/Buffer.hh > > but on FreeBSD, I have to also > #include > > . Are there other Posix systems where you have to include > that file? > > I read that "SCTP frequently sends heartbeat messages to > test the state of connection." I'm not sure I want it to do that > frequently. Is that configurable? Thank you in advance. > > On my openSUSE and FreeBSD systems, the heartbeat interval is set to 30 seconds. That's more often than I need it. Is there a way to change that from within the program I linked to? Brian Ebenezer Enterprises - In G-d we trust. http://webEbenezer.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From eng at pinenet.com Sun Oct 6 23:34:13 2019 From: eng at pinenet.com (Rick Engebretson) Date: Sun, 6 Oct 2019 23:34:13 -0500 Subject: [tclug-list] Stream Control Transmission Protocol (SCTP) In-Reply-To: References: Message-ID: <3cd4c0dc-f656-5c9b-a96d-96e3fc5b7d12@pinenet.com> I can't help with your programming adventure, but since you use openSUSE and low level socket functions I might have a suggestion or two. First, what version of openSUSE do you use??? I have several installed on several machines. Personally, I usually prefer old 32 bit openSUSE 12.2 for core programming. I like the 12.3, 13.1 for their desktop themes, 13.2 for my "modern" internet play, 42.3 Leap is great for exploring 64 bit, but 15.1 is a weak programming version. My reason is the lack of Tkman on 15.1. You can really explore the man pages with hyperlinks, multiple open pages (like xman), and exploring volumes. On a 64 bit version you have different directories for different libraries, which adds a lot of confusion. And I'm not sure how posix compliant BSD is. Often I dig through the C header files to create FreePascal library access. I did a fair amount with Unix local sockets and it's worth looking at the header file for lots of info. It might compile, but you don't know what it does. openSUSE also usually provides an HTML documentation of the Gnu-C library. Without looking at some recent (last winter) programming fun, I seem to remember trying socket(Unix, Packet,??) and getting good message boundaries not seen in socket(Unix, Stream, ??). And IIRC, the third parameter might or might not mean anything. Of course this has nothing to do with your question. Except digging around the man pages and include files, even source code and kernel documentation has been a real eye opener into what an extraordinary system linux is. As the SUSE team says; "Have a lot of fun!" Brian Wood wrote: > On Wed, Oct 2, 2019 at 11:49 AM Brian Wood > wrote: > > Shalom > > I've been thinking of converting my TCP-based code > generator to SCTP. Finding info on SCTP is not as > easy though as TCP. > > > I've made some progress with this, mainly in the 'login' function: > https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/tiers/cmwA.cc > > > Have you used SCTP? On > openSUSE, I can compile this: > > int sd=::socket(PF_INET,SOCK_STREAM,IPPROTO_SCTP); > > with just this file: > https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/Buffer.hh > > but on FreeBSD, I have to also > #include > > . Are there other Posix systems where you have to include > that file? > > I read that "SCTP frequently sends heartbeat messages to > test the state of connection." I'm not sure I want it to do that > frequently. Is that configurable? Thank you in advance. > > > On my openSUSE and FreeBSD systems, the heartbeat interval > is set to 30 seconds. That's more often than I need it. Is there > a way to change that from within the program I linked to? > > > Brian > Ebenezer Enterprises - In G-d we trust. > http://webEbenezer.net > > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list > From eng at pinenet.com Mon Oct 7 00:02:55 2019 From: eng at pinenet.com (Rick Engebretson) Date: Mon, 7 Oct 2019 00:02:55 -0500 Subject: [tclug-list] Stream Control Transmission Protocol (SCTP) In-Reply-To: <3cd4c0dc-f656-5c9b-a96d-96e3fc5b7d12@pinenet.com> References: <3cd4c0dc-f656-5c9b-a96d-96e3fc5b7d12@pinenet.com> Message-ID: <9f10a9ed-081a-f9d3-f246-06f8d9e0a4e4@pinenet.com> It also might be worth installing a good text editor. I like "nedit" partly because it has a great search tool. You can install a downloaded binary nedit if you install "libXp". But I'm sure there are other editors. It helps to search large header and source files. Also, the file manager "Dolphin" has a great, even if clumsy, search tool. Again, these are just personal experiences. Saved me some time. Rick Engebretson wrote: > I can't help with your programming adventure, but since you use openSUSE > and low level socket functions I might have a suggestion or two. > > First, what version of openSUSE do you use??? I have several installed > on several machines. Personally, I usually prefer old 32 bit openSUSE > 12.2 for core programming. I like the 12.3, 13.1 for their desktop > themes, 13.2 for my "modern" internet play, 42.3 Leap is great for > exploring 64 bit, but 15.1 is a weak programming version. > > My reason is the lack of Tkman on 15.1. You can really explore the man > pages with hyperlinks, multiple open pages (like xman), and exploring > volumes. On a 64 bit version you have different directories for > different libraries, which adds a lot of confusion. And I'm not sure how > posix compliant BSD is. > > Often I dig through the C header files to create FreePascal library > access. I did a fair amount with Unix local sockets and it's worth > looking at the header file for lots of info. It might compile, but you > don't know what it does. openSUSE also usually provides an HTML > documentation of the Gnu-C library. > > Without looking at some recent (last winter) programming fun, I seem to > remember trying socket(Unix, Packet,??) and getting good message > boundaries not seen in socket(Unix, Stream, ??). And IIRC, the third > parameter might or might not mean anything. > > Of course this has nothing to do with your question. Except digging > around the man pages and include files, even source code and kernel > documentation has been a real eye opener into what an extraordinary > system linux is. > > As the SUSE team says; "Have a lot of fun!" > > > Brian Wood wrote: >> On Wed, Oct 2, 2019 at 11:49 AM Brian Wood > > wrote: >> >> Shalom >> >> I've been thinking of converting my TCP-based code >> generator to SCTP. Finding info on SCTP is not as >> easy though as TCP. >> >> >> I've made some progress with this, mainly in the 'login' function: >> https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/tiers/cmwA.cc >> >> >> >> Have you used SCTP? On >> openSUSE, I can compile this: >> >> int sd=::socket(PF_INET,SOCK_STREAM,IPPROTO_SCTP); >> >> with just this file: >> >> https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/Buffer.hh >> >> but on FreeBSD, I have to also >> #include >> >> . Are there other Posix systems where you have to include >> that file? >> >> I read that "SCTP frequently sends heartbeat messages to >> test the state of connection." I'm not sure I want it to do that >> frequently. Is that configurable? Thank you in advance. >> >> >> On my openSUSE and FreeBSD systems, the heartbeat interval >> is set to 30 seconds. That's more often than I need it. Is there >> a way to change that from within the program I linked to? >> >> >> Brian >> Ebenezer Enterprises - In G-d we trust. >> http://webEbenezer.net >> >> >> _______________________________________________ >> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota >> tclug-list at mn-linux.org >> http://mailman.mn-linux.org/mailman/listinfo/tclug-list >> > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list From woodbrian77 at gmail.com Sun Oct 13 20:21:48 2019 From: woodbrian77 at gmail.com (Brian Wood) Date: Sun, 13 Oct 2019 20:21:48 -0500 Subject: [tclug-list] Trident possibly moving to Linux Message-ID: Shalom https://www.reddit.com/r/freebsd/comments/dh1l77/project_trident_moving_on_from_freebsd_to_a/ I'm sorry to hear that and wish they would reconsider. I'm not planning to follow them in that and will use something like GhostBSD instead. Brian Ebenezer Enterprises - In G-d we trust. https://github.com/Ebenezer-group/onwards -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at lctn.org Wed Oct 23 12:39:27 2019 From: admin at lctn.org (admin at lctn.org) Date: Wed, 23 Oct 2019 12:39:27 -0500 (CDT) Subject: [tclug-list] bash script not working properly Message-ID: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From droidjd at gmail.com Wed Oct 23 13:01:00 2019 From: droidjd at gmail.com (Andrew Dahl) Date: Wed, 23 Oct 2019 13:01:00 -0500 Subject: [tclug-list] bash script not working properly In-Reply-To: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> Message-ID: 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 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: From ryan.coleman at cwis.biz Wed Oct 23 13:09:04 2019 From: ryan.coleman at cwis.biz (Ryan Coleman) Date: Wed, 23 Oct 2019 13:09:04 -0500 Subject: [tclug-list] bash script not working properly In-Reply-To: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> Message-ID: <50101958-7164-4E2B-8AA1-F0D386E3604D@cwis.biz> …. is movit.sh set up with the right permissions? > On Oct 23, 2019, at 12:39 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: From nassarmu at gmail.com Wed Oct 23 13:09:44 2019 From: nassarmu at gmail.com (Munir Nassar) Date: Wed, 23 Oct 2019 13:09:44 -0500 Subject: [tclug-list] bash script not working properly In-Reply-To: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> Message-ID: I suspect that the wait has something to do with it, is the idea to wait for the tshark to complete? I would use a sleep 5 before calling movit.sh. speaking of which, why now put the mv commands at the end of the ts.sh? why bother calling a separate script at all? Finally, you should be using the -b option to tshark to put it in multiple output mode to collect pcaps over time something like -b duration:60 On Wed, Oct 23, 2019 at 12:48 PM 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 From sfertch at gmail.com Wed Oct 23 13:18:06 2019 From: sfertch at gmail.com (Shawn Fertch) Date: Wed, 23 Oct 2019 13:18:06 -0500 Subject: [tclug-list] bash script not working properly In-Reply-To: <50101958-7164-4E2B-8AA1-F0D386E3604D@cwis.biz> References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> <50101958-7164-4E2B-8AA1-F0D386E3604D@cwis.biz> Message-ID: 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 wrote: > …. is movit.sh set up with the right permissions? > > > > On Oct 23, 2019, at 12:39 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 > > > _______________________________________________ > 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: From admin at lctn.org Wed Oct 23 13:18:58 2019 From: admin at lctn.org (admin at lctn.org) Date: Wed, 23 Oct 2019 13:18:58 -0500 (CDT) Subject: [tclug-list] bash script not working properly In-Reply-To: References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> Message-ID: <1754492162.16381.1571854738708.JavaMail.zimbra@lctn.org> "why bother calling a separate script at all?" Because, I don't want the capture files written over if tshark is launched multiple times in a short period of time. Thank you for the -b option. I believe I need that. ----- Original Message ----- From: "Munir Nassar" To: "tclug-list" Sent: Wednesday, October 23, 2019 1:09:44 PM Subject: Re: [tclug-list] bash script not working properly I suspect that the wait has something to do with it, is the idea to wait for the tshark to complete? I would use a sleep 5 before calling movit.sh. speaking of which, why now put the mv commands at the end of the ts.sh? why bother calling a separate script at all? Finally, you should be using the -b option to tshark to put it in multiple output mode to collect pcaps over time something like -b duration:60 On Wed, Oct 23, 2019 at 12:48 PM 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 _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota tclug-list at mn-linux.org http://mailman.mn-linux.org/mailman/listinfo/tclug-list From joel.breazeale at gmail.com Thu Oct 24 19:54:26 2019 From: joel.breazeale at gmail.com (Joel Breazeale) Date: Thu, 24 Oct 2019 19:54:26 -0500 Subject: [tclug-list] bash script not working properly In-Reply-To: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> Message-ID: I'll bite. I notice you use capture.pcapng in Moveit.sh. How about fully qualifying the path with /home/raymond/capture.pcapng? Are you getting an error message from the failure? If so what is that error? On Wed, Oct 23, 2019 at 12:48 PM 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: From admin at lctn.org Thu Oct 24 21:30:00 2019 From: admin at lctn.org (admin at lctn.org) Date: Thu, 24 Oct 2019 21:30:00 -0500 (CDT) Subject: [tclug-list] bash script not working properly In-Reply-To: References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> Message-ID: <1889721780.17918.1571970600241.JavaMail.zimbra@lctn.org> It only errs out if I run the script every 15 seconds (not show in post). The script was designed to run every 15 seconds and if a ping failed it runs tshark for a minute. We have a very evasive network issue, that comes and goes in a minute or less and needed a way to run a capture in the moment. I set the script to run every minute, instead and everything works fine, outside of the problem occurring 15 seconds later and ending before the next minute :) Thanks for checking From: "Joel Breazeale" To: "tclug-list" Sent: Thursday, October 24, 2019 7:54:26 PM Subject: Re: [tclug-list] bash script not working properly I'll bite. I notice you use capture.pcapng in Moveit.sh. How about fully qualifying the path with /home/raymond/capture.pcapng? Are you getting an error message from the failure? If so what is that error? 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 _______________________________________________ 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: From mbmiller+l at gmail.com Wed Oct 30 19:40:56 2019 From: mbmiller+l at gmail.com (Mike Miller) Date: Wed, 30 Oct 2019 19:40:56 -0500 (CDT) Subject: [tclug-list] bash script not working properly In-Reply-To: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> References: <1908863466.16253.1571852367691.JavaMail.zimbra@lctn.org> Message-ID: Could the problem be with the way you need to make files in rapid succession, changing their names and sometimes not getting that done fast enough? Could you switch the order around a bit like this?: DATE=$(date +%F-%H:%M:%S) touch /home/raymond/${DATE}.pcapng tshark -i enp1s0 -a duration:60 -w /home/raymond/${DATE}.pcapng echo "All Done!" I dropped the 1 from the filename and added seconds so that doing more than one per minute isn't a problem. It's just one script instead of two. If another starts before an earlier one finishes, you probably won't have a problem. Mike On Wed, 23 Oct 2019, 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 > From mbmiller+l at gmail.com Wed Oct 30 19:15:02 2019 From: mbmiller+l at gmail.com (Mike Miller) Date: Wed, 30 Oct 2019 19:15:02 -0500 (CDT) Subject: [tclug-list] fixing broken Ubuntu after failed 19.10 upgrade [SOLVED] Message-ID: I think I got this right and I just want to share what happened. I was upgrading, but I walked away and let it run. When I came back the screen was black with a flashing underscore in the upper left corner. I waited a few minutes, nothing, so I tried the usual tricks to return it to life, nothing again, so I powered it off. When it came back up, it seemed to mostly work, but it couldn't load Gnome and it gave me a white screen announcing that it had failed and I needed to log off and try again. I did that and got to the login screen, but after that I couldn't log in -- it always went back to the white fail screen. Then I searched the web and found this: How To Fix Broken Ubuntu OS Without Reinstalling It https://www.ostechnix.com/how-to-fix-broken-ubuntu-os-without-reinstalling-it/ I could ssh into the box, so I did it that way, using copy/paste from the web page. And it seemed to work. In case someday that web page is gone, these were the commands: sudo rm /var/lib/apt/lists/lock sudo rm /var/lib/dpkg/lock sudo rm /var/lib/dpkg/lock-frontend sudo dpkg --configure -a sudo apt clean sudo apt update --fix-missing sudo apt install -f sudo dpkg --configure -a sudo apt upgrade sudo apt dist-upgrade sudo reboot After that it worked perfectly. For some reason the time was not being set automatically, so I went here... Settings > Details > Date & Time ...and activated "Automatic Date & Time". That fixed it. I think I'm all set, but let me know if you see anything wrong with those commands. Is there anything more I need to do? Thanks in advance. Mike