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
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
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
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
On Tue, Nov 12, 2024 at 03:23:34PM +, Richard Bostrom wrote:
> Please how do I run a script at startup?
man rc.local
--
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
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
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
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/
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
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
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"
>
> .
> 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
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,
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
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
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.
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
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
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.
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
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
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
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
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?
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
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
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
> 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?
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
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
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
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.
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 $
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
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
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
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
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
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.
> 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
>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
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
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
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
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
[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.
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
> 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.
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
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
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?
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
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.
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
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
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
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
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
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
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
61 matches
Mail list logo