Re: Script at boot

2024-11-13 Thread Justin Yates Fletcher
pro-tip: read the documentation for the programs you are using on the OS you are using! On Wed, 2024-11-13 at 15:53 -0800, obs...@loopw.com wrote: > pro-tip: for the most part the bsd’s split from each other in the > 90s.  Thats a lot of lines of code to this day.  You cannot bank on > cron being

Re: Script at boot

2024-11-13 Thread obsdml
pro-tip: for the most part the bsd’s split from each other in the 90s. Thats a lot of lines of code to this day. You cannot bank on cron being the same in open as it is in free, net, dragonfly, etc. > On Nov 13, 2024, at 3:56 AM, Corey wrote: > > does BSD's crontab have any difference tha

Re: Script at boot

2024-11-13 Thread John McCue
On Wed, Nov 13, 2024 at 11:56:18AM +, Corey wrote: does BSD's crontab have any difference than GNU/Linux's? Yes, but nothing to be concerned about assuming you have used cron(8) in the past. You should do a 'man 5 crontab'. OpenBSD cron can be looked like an enhanced cron. One difference

Re: Script at boot

2024-11-13 Thread Corey
does BSD's crontab have any difference than GNU/Linux's? Thanks November 12, 2024 at 11:49 PM, "Ronny Machado" mailto:ronny.mach...@runbox.com?to=%22Ronny%20Machado%22%20%3Cronny.machado%40runbox.com%3E > wrote: > > On 11/12/24 12:23, Richard Bostrom wrote: > > > > > Please how do I run a

Re: Script at boot

2024-11-12 Thread Zé Loff
On Tue, Nov 12, 2024 at 03:23:34PM +, Richard Bostrom wrote: > Please how do I run a script at startup? man rc.local --  

Re: Script at boot

2024-11-12 Thread Ronny Machado
On 11/12/24 12:23, Richard Bostrom wrote: Please how do I run a script at startup? An easy way... in your crontab: @reboot tmux new-session -d '/usr/local/bin/syncthing' 1.- Use the full path. 2.- Tmux makes your script running indefinitely...in case you want that, otherwise, no need to u

Re: Script at boot

2024-11-12 Thread Stuart Henderson
On 2024-11-12, Richard Bostrom wrote: > > UGxlYXNlIGhvdyBkbyBJIHJ1biBhIHNjcmlwdCBhdCBzdGFydHVwPw== your mail client is very annoying and encodes plain text. : $ echo UGxlYXNlIGhvdyBkbyBJIHJ1biBhIHNjcmlwdCBhdCBzdGFydHVwPw== | b64decode -r : Please how do I run a script at startup? When the syste

Re: Script doesn't stop opensearch

2024-01-04 Thread Omar Polo
On 2024/01/04 19:44:01 +, Mik J wrote: > [...] > I still have a question Omar, you wrote that the pexp content would be matched > "the daemon is found by looking for a process matching that pexp and killing > it." > > Here I have > pexp="$(/usr/local/bin/javaPathHelper -c opensearch) > .*or

Re: Script doesn't stop opensearch

2024-01-04 Thread Mik J
Hello Mike, Omar, Stuart, Thank you for your answers, I've learnt a lot through these. It seems that my problem was due to the fact that I added this variable in my /root/.profile export JAVA_HOME=/usr/local/jdk-11/ # cat /var/run/rc.d/opensearch was then showing a double slash pexp=/usr/local/

Re: Script doesn't stop opensearch

2024-01-04 Thread Stuart Henderson
On 2024-01-03, Mik J wrote: > Hello, > > I don't understand how the startup/stop script works It uses the string from pexp (as it was when the daemon was _started_; changes to the rc script after startup are ignored) with pgrep(1) -xf to identify the running process (and pkill -xf to actually sig

Re: Script doesn't stop opensearch

2024-01-04 Thread Stuart Henderson
On 2024-01-04, Mike Fischer wrote: > >> Am 04.01.2024 um 00:06 schrieb Mik J : >> >> However when I want to stop the process >> # /etc/rc.d/opensearch stop >> Nothing happens > > try: > # rcctl stop opensearch > > You are not supposed to ever call the /etc/rc.d/* scripts directly. no, that's fin

Re: Script doesn't stop opensearch

2024-01-04 Thread Omar Polo
On 2024/01/03 23:06:57 +, Mik J wrote: > Hello, > > I don't understand how the startup/stop script works > > # cat /etc/rc.d/opensearch > #!/bin/ksh > > daemon="/usr/local/opensearch/bin/opensearch" > daemon_flags="-d -p /var/run/opensearch/opensearch.pid" > daemon_user="_opensearch" > > .

Re: Script doesn't stop opensearch

2024-01-03 Thread Mike Fischer
> Am 04.01.2024 um 00:06 schrieb Mik J : > > However when I want to stop the process > # /etc/rc.d/opensearch stop > Nothing happens try: # rcctl stop opensearch You are not supposed to ever call the /etc/rc.d/* scripts directly. HTH Mike

Re: Script launcher and a suite of basic scripts for music production?

2023-01-19 Thread Brian Durant
On 1/18/23 18:35, Luke A. Call wrote: On 2023-01-18 16:51:28+0100, Brian Durant wrote: On 1/18/23 11:46, Abhishek Chakravarti wrote: Brian Durant writes: The only disadvantage that I can see at this point, is that what I am describing would require a number of open terminals on the desktop,

Re: Script launcher and a suite of basic scripts for music production?

2023-01-18 Thread Luke A. Call
On 2023-01-18 16:51:28+0100, Brian Durant wrote: > On 1/18/23 11:46, Abhishek Chakravarti wrote: > > Brian Durant writes: > > > The only disadvantage that I can see at this point, is that what I am > > > describing would require a number of open terminals on the desktop, > > > which can be confu

Re: Script launcher and a suite of basic scripts for music production?

2023-01-18 Thread Crystal Kolipe
On Wed, Jan 18, 2023 at 04:51:28PM +0100, Brian Durant wrote: > Record audio from USB sound card: > $ aucat -o /home/user/Music/set/1 - ?.wav > > Playback audio file: > $ aucat -i /home/user/Music/set/1 - ?.wav You might want to specify the encoding and other parameters rather than rely on the de

Re: Script launcher and a suite of basic scripts for music production?

2023-01-18 Thread Brian Durant
On 1/18/23 11:46, Abhishek Chakravarti wrote: Hello! Brian Durant writes: The only disadvantage that I can see at this point, is that what I am describing would require a number of open terminals on the desktop, which can be confusing to sort through, particularly during a live performance.

Re: Script launcher and a suite of basic scripts for music production?

2023-01-18 Thread Abhishek Chakravarti
Hello! Brian Durant writes: > The only disadvantage that I can see at this point, is that what I am > describing would require a number of open terminals on the desktop, > which can be confusing to sort through, particularly during a live > performance. Although not a direct answer to your q

Re: Script for the creation of multiple user accounts

2010-12-12 Thread Otto Moerbeek
This is not OpenBSD specific but check jot(1) and xargs(1). Something like jot -w user 6 | xargs -n 1 useradd ... Will do. -Otto On Sun, Dec 12, 2010 at 02:30:25PM +0400, OpenBSD Geek wrote: > Hi, > > I want to be able to create with a batch file multiple user account

Re: script to update dyndns IP

2010-03-19 Thread Corey
On 03/18/2010 08:52 PM, Brad Tilley wrote: There are ports that do this with more features, but I thought others might like to do it in base with no added software. I've been using this script since 4.2 and it works OK: #!/bin/ksh # Cron this script to run every X minutes. Written for OpenBSD.

Re: script to update dyndns IP

2010-03-19 Thread Duncan Patton a Campbell
On Fri, 19 Mar 2010 14:04:16 +0300 Vadim Zhukov wrote: > On 19 March 2010 c. 10:54:26 Duncan Patton a Campbell wrote: > > On Thu, 18 Mar 2010 21:52:28 -0400 > > > > "Brad Tilley" wrote: > > > There are ports that do this with more features, but I thought > > > others might like to do it in base

Re: script to update dyndns IP

2010-03-19 Thread Brad Tilley
On Fri, 19 Mar 2010 00:20 -0700, "Aaron Stellman" wrote: > On Thu, Mar 18, 2010 at 09:52:28PM -0400, Brad Tilley wrote: > > There are ports that do this with more features, but I thought others > > might like to do it in base with no added software. I've been using this > > script since 4.2 and it

Re: script to update dyndns IP

2010-03-19 Thread Vadim Zhukov
On 19 March 2010 c. 10:54:26 Duncan Patton a Campbell wrote: > On Thu, 18 Mar 2010 21:52:28 -0400 > > "Brad Tilley" wrote: > > There are ports that do this with more features, but I thought > > others might like to do it in base with no added software. I've been > > using this script since 4.2 and

Re: script to update dyndns IP

2010-03-19 Thread Duncan Patton a Campbell
On Thu, 18 Mar 2010 21:52:28 -0400 "Brad Tilley" wrote: > There are ports that do this with more features, but I thought others > might like to do it in base with no added software. I've been using this > script since 4.2 and it works OK: > > #!/bin/ksh > > # Cron this script to run every X min

Re: script to update dyndns IP

2010-03-19 Thread Aaron Stellman
On Thu, Mar 18, 2010 at 09:52:28PM -0400, Brad Tilley wrote: > There are ports that do this with more features, but I thought others > might like to do it in base with no added software. I've been using this > script since 4.2 and it works OK: since when is net/curl in base?

Re: script to update dyndns IP

2010-03-18 Thread Brad Tilley
On Thu, 18 Mar 2010 21:52 -0400, "Brad Tilley" wrote: > There are ports that do this with more features, but I thought others > might like to do it in base with no added software. I've been using this > script since 4.2 and it works OK: > > #!/bin/ksh > > # Cron this script to run every X minute

Re: Script to ping, traceroute a destination and record the time

2009-10-29 Thread Frans Haarman
2009/10/29 Kasper Adel > thanks all for answering. > > Traceroute will allow me to find out if during the short period of > application disconnect is whether its an app problem or the network > topology > changes and where (which router) the packets couldnt get across. > > Cheers, > Kim > > On Th

Re: Script to ping, traceroute a destination and record the time

2009-10-29 Thread Kasper Adel
thanks all for answering. Traceroute will allow me to find out if during the short period of application disconnect is whether its an app problem or the network topology changes and where (which router) the packets couldnt get across. Cheers, Kim On Thu, Oct 29, 2009 at 4:43 PM, Toni Mueller wr

Re: Script to ping, traceroute a destination and record the time

2009-10-29 Thread David Walker
> If you can't whip this up yourself in a matter of 2 minutes they > have the wrong person debugging it. +1 If you can't already write this don't panic - it is possibly the best opportunity you may have to get your feet wet. Motivation - fix that problem. Interesting - who doesn't like learning?

Re: Script to ping, traceroute a destination and record the time

2009-10-29 Thread John Jackson
On Thu, Oct 29, 2009 at 04:26:49PM +0200, Kasper Adel wrote: > Hi, > > I am trying to troubleshoot a problem that is totally random and the one > idea that would help me is to have a bash script that will ping a few > destinations every minute, then do a traceroute to these destinations, > record

Re: Script to ping, traceroute a destination and record the time

2009-10-29 Thread Jason Dixon
On Thu, Oct 29, 2009 at 04:26:49PM +0200, Kasper Adel wrote: > Hi, > > I am trying to troubleshoot a problem that is totally random and the one > idea that would help me is to have a bash script that will ping a few > destinations every minute, then do a traceroute to these destinations, > record

Re: Script to ping, traceroute a destination and record the time

2009-10-29 Thread Toni Mueller
Hi, On Thu, 29.10.2009 at 16:26:49 +0200, Kasper Adel wrote: > I am trying to troubleshoot a problem that is totally random and the one > idea that would help me is to have a bash script that will ping a few > destinations every minute, then do a traceroute to these destinations, > record the tim

Re: script

2009-10-15 Thread Christian Weisgerber
igor denisov wrote: > I cannot figure out what is wrong with the following code > > #! /bin/ksh > for (( i=9; i>0; i-- )) OpenBSD's ksh is based on pdksh, which in turn is patterned on ksh88. The "for ((... ; ... ; ...))" construction was only introduced with ksh93, so our ksh doesn't have it.

Re: script

2009-10-14 Thread Vadim Zhukov
On 15 October 2009 c. 07:33:36 patrick keshishian wrote: > On Wed, Oct 14, 2009 at 8:11 PM, igor denisov > > wrote: > > Hi there > > > > my version of ksh: > > > > $what /bin/ksh > > > > /bin/ksh > > Copyright (c) 1989, 1993 > >$OpenBSD: mknod.c,v 1.1 2005/10/06 06:39:36 otto Exp $

Re: script

2009-10-14 Thread patrick keshishian
On Wed, Oct 14, 2009 at 8:11 PM, igor denisov wrote: > Hi there > > my version of ksh: > > $what /bin/ksh > > /bin/ksh > Copyright (c) 1989, 1993 >$OpenBSD: mknod.c,v 1.1 2005/10/06 06:39:36 otto Exp $ >PD KSH v5.2.14 99/07/13.2 > > I cannot figure out what is wrong with th

Re: script

2009-10-14 Thread Edho P Arief
On Thu, Oct 15, 2009 at 10:11 AM, igor denisov wrote: > Hi there > > my version of ksh: > > $what /bin/ksh > > /bin/ksh > B B B B Copyright (c) 1989, 1993 > B B B B $OpenBSD: mknod.c,v 1.1 2005/10/06 06:39:36 otto Exp $ > B B B B PD KSH v5.2.14 99/07/13.2 > > I cannot figure out what is

Re: script

2009-10-14 Thread Joe Gidi
On Wed, October 14, 2009 11:11 pm, igor denisov wrote: > Hi there > > my version of ksh: > > $what /bin/ksh > > /bin/ksh >Copyright (c) 1989, 1993 > $OpenBSD: mknod.c,v 1.1 2005/10/06 06:39:36 otto Exp $ > PD KSH v5.2.14 99/07/13.2 > > I cannot figure out what is wrong with the

Re: Script checking PERMIT_ values of all lib/run depends

2009-06-08 Thread Cem Kayali
Rene Maroufi, 06/08/09 16:55: On Sun, Jun 07, 2009 at 04:47:14AM +0300, Cem Kayali wrote: port=multimedia/k3b Why not $1 instead of $port? It's more flexible, if it isn't hardcoded. Cheers Rene Sure, of course. Also I have found easier way, which requires some additions into bs

Re: Script checking PERMIT_ values of all lib/run depends

2009-06-08 Thread Rene Maroufi
On Sun, Jun 07, 2009 at 04:47:14AM +0300, Cem Kayali wrote: > > port=multimedia/k3b Why not $1 instead of $port? It's more flexible, if it isn't hardcoded. Cheers Rene -- Reni Maroufi i...@maroufi.net

Re: script

2009-01-13 Thread David Gwynne
On 13/01/2009, at 6:37 PM, Jacek Artymiak wrote: Actually, there's a bug in the script. Should be "\$0.99". ;o) That's so wasteful. That's one keystroke too many. '$0.99' would be more appropriate for today's 'green' enterprises ;-) all those extra escapes could cost you a cup of tea.

Re: script

2009-01-13 Thread Jacek Artymiak
> Actually, there's a bug in the script. Should be "\$0.99". ;o) That's so wasteful. That's one keystroke too many. '$0.99' would be more appropriate for today's 'green' enterprises ;-) -- Jacek Artymiak http://devGuide.net

Re: script

2009-01-13 Thread Tom Van Looy
>Nick Guenther wrote: >>> Does anybody provide a commercial shell scripting??? >> >> for i in "Don't wait" "Buy Things Now" "Save Now" "$0.99" "Get your >> instant trial account now" "Double Your Sales Calls, Free Script >> Demo"; do >> echo $i >> done >> >> Like that? > >Hey man, that wasn't j

Re: script

2009-01-12 Thread Janne Johansson
Nick Guenther wrote: Does anybody provide a commercial shell scripting??? for i in "Don't wait" "Buy Things Now" "Save Now" "$0.99" "Get your instant trial account now" "Double Your Sales Calls, Free Script Demo"; do echo $i done Like that? Hey man, that wasn't just 'commercial grade', tha

Re: script

2009-01-12 Thread Nick Guenther
On Mon, Jan 12, 2009 at 1:32 PM, igor denisov wrote: > Hi there, > Does anybody provide a commercial shell scripting??? > -- > igor denisov. > for i in "Don't wait" "Buy Things Now" "Save Now" "$0.99" "Get your instant trial account now" "Double Your Sales Calls, Free Script Demo"; do echo $i d

Re: script to process spamd and generate html

2008-04-03 Thread Calomel
We use a simple Perl script to analyze the spamd logs and generate HTML output. Spamd Statistics Script (annoying spammers) http://calomel.org/spamd_stats.html -- Calomel @ http://calomel.org Open Source Research and Reference On Thu, Apr 03, 2008 at 10:19:18AM -0300, Jose Fragoso wrote

Re: Script to sync pf rules for CARP fws

2006-11-15 Thread z0mbix
On 14/11/06, Leonardo Rodrigues de Mello <[EMAIL PROTECTED]> wrote: Here is one script i have done, you must setup ssh key authentication between root from fw1 to fw2 and fw1 to fw1. and must install bash. Why install bash? Just write the script properly so it works with ksh or another shell i

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread Nick Holland
[EMAIL PROTECTED] wrote: ... ok, that's what one gets by doing silly stuff with too many mail clients at too many different places and getting sloppy about how one configures them. That was from me, in case anyone wasn't sure. :) Nick.

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread user
C. L. Martinez wrote: > Hi all, > > Somebody knows where I can find a good shell script to sync pf.conf rules > over a several Openbsd firewalls using CARP? > > many thanks. yeah, on a few of my boxes here. :) No, I'm not going to post the script, on the grounds that people would probably be t

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread Didier Wiroth
> Hi all, > > Somebody knows where I can find a good shell script to sync > pf.conf rules > over a several Openbsd firewalls using CARP? > > many thanks. Hello, For this to work, you need ssh-agent and to setup /usr/ports/sysutils/tentakel on your admin workstation. #!/bin/sh hosts[0]=172.16.42.

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread Marcus Popp
On 2006-11-14T18:43, C. L. Martinez wrote: > Sorry?? Do I need to run pfctl to load rules only on one fw under carp and > then this rules are sync to the others firewalls ?? If this is ok, then I > don't read pf's very well ... no, you have to run pfctl on every machine to activate changes in your

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread C. L. Martinez
Sorry?? Do I need to run pfctl to load rules only on one fw under carp and then this rules are sync to the others firewalls ?? If this is ok, then I don't read pf's very well ... On 11/14/06, Alexander Lind <[EMAIL PROTECTED]> wrote: > > no need to run pfctl on the other machines, if you are using

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread Alexander Lind
no need to run pfctl on the other machines, if you are using pfsync, is there? alec z0mbix wrote: > On 14/11/06, C. L. Martinez <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> Somebody knows where I can find a good shell script to sync pf.conf >> rules >> over a several Openbsd firewalls using CARP?

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread z0mbix
On 14/11/06, C. L. Martinez <[EMAIL PROTECTED]> wrote: Hi all, Somebody knows where I can find a good shell script to sync pf.conf rules over a several Openbsd firewalls using CARP? many thanks. Surely a simple shell script using scp to copy the pf.conf to each host and ssh to run pfctl to

Re: Script to sync pf rules for CARP fws

2006-11-14 Thread Marcus Popp
On 2006-11-14T16:37, C. L. Martinez wrote: > Hi all, > > Somebody knows where I can find a good shell script to sync pf.conf rules > over a several Openbsd firewalls using CARP? for HOST in a b c d; do scp /etc/pf.conf $HOST:/etc/ done hth, Marcus.

Re: script

2005-12-13 Thread Ricardo Lucas
That I know. if I try rm -rf * on / I'll remove all of my files. I know I know. Thank's for your care. 2005/12/13, Terry <[EMAIL PROTECTED]>: > > On Tue, 13 Dec 2005, Rus Foster wrote: > > > rm -rf * should do it or you couuld try > > Be careful what directory you are in when doing this because t

Re: script

2005-12-13 Thread Terry
On Tue, 13 Dec 2005, Rus Foster wrote: rm -rf * should do it or you couuld try Be careful what directory you are in when doing this because this will remove ALL files and directories in the current directory not just a specific file or directory. -- Terry

Re: script

2005-12-13 Thread Rus Foster
rm -rf * should do it or you couuld try find . -exec rm {} \; Rus -- e: [EMAIL PROTECTED] : t: 01635 281120 | google: [EMAIL PROTECTED] Unix Admin work from #40/hour or $70/hour http://www.a2b2.com - UK and US Dedicated and Virtual servers http://www.instantblog.net - Does exactly what it says

Re: script

2005-12-13 Thread Ricardo Lucas
Off course!!! Now I've got. May be because I've read the man too quickly and than I've missed this part. Thank's to help a noob =] 2005/12/13, Ricardo Lucas <[EMAIL PROTECTED]>: > > Thank's man, I don't know how I didn't see that in the man, I'll see it > again. > > 2005/12/13, Andreas Kahari <[E

Re: script

2005-12-13 Thread Ricardo Lucas
Thank's man, I don't know how I didn't see that in the man, I'll see it again. 2005/12/13, Andreas Kahari <[EMAIL PROTECTED]>: > > rm -rf directory > > Re-read the rm(1) manual, and be sure you know what you're doing > before you do it. > > Cheers, > Andreas > > On 13/12/05, Ricardo Lucas <[EMAIL

Re: script

2005-12-13 Thread Andreas Kahari
rm -rf directory Re-read the rm(1) manual, and be sure you know what you're doing before you do it. Cheers, Andreas On 13/12/05, Ricardo Lucas <[EMAIL PROTECTED]> wrote: > Hi all, > does anyone knows a script or even a little program that remove all files > and subdirectories and his respective

Re: script

2005-12-13 Thread Juan J.
El mar, 13-12-2005 a las 08:22 -0200, Ricardo Lucas escribis: > Hi all, > does anyone knows a script or even a little program that remove all files > and subdirectories and his respective files from a folder? > I've read the man of rm and rmdir but seems like they can't do that. rm -r directoy/ T