On Fri, Apr 15, 2022 at 08:16:22PM -0400, Greg Wooledge wrote:
ls -l .bashrc
You've got a command name, and you're passing two string arguments to
it. If you feel a need to quote every string argument, then you should
be writing it like this:
ls "-l" ".bashrc"
There's nothing special about t
On Sat 16 Apr 2022 at 08:07:09 (-0400), The Wanderer wrote:
> On 2022-04-15 at 22:52, Greg Wooledge wrote:
> > On Fri, Apr 15, 2022 at 09:47:11PM -0400, The Wanderer wrote:
> >> On 2022-04-15 at 20:47, Greg Wooledge wrote:
> >>> You're also going to exit your script with the exit status from
> >>>
On Sat, Apr 16, 2022 at 08:07:09AM -0400, The Wanderer wrote:
> ...Huh. That's so unintuitive that it hadn't even occurred to me to test
> it before posting, but I just did test it (with 'ps', not 'foobar',
> because there's a reason why 'ps' would be special for this purpose),
> and you're correct
On Sat, Apr 16, 2022 at 04:20:15PM +0800, wilson wrote:
> does bash shell have the list/array concept?
Bash has indexed arrays (since forever) and associative arrays (in
version 4.0 and above).
> ~$ list="1 2 3 4"
>
> ~$ for i in $list; do echo $i; done
> 1
> 2
> 3
> 4
>
> is this a list access
On 2022-04-15 at 22:52, Greg Wooledge wrote:
> On Fri, Apr 15, 2022 at 09:47:11PM -0400, The Wanderer wrote:
>
>> On 2022-04-15 at 20:47, Greg Wooledge wrote:
>>> You're also going to exit your script with the exit status from
>>> that last grep command. That's probably not what you want. If
>
Hello,
On Sat, Apr 16, 2022 at 10:39:03AM +0530, didar wrote:
> On Fri, Apr 15, 2022 at 10:58:01PM +, Andy Smith wrote:
> > If you happen to know their IPv6 addresses and can trust that those
> > assignments will remain stable then you may prefer instead to add
> > prohibited routes for these,
On Sat, 16 Apr 2022 at 18:20, wilson wrote:
> does bash shell have the list/array concept?
Hi, this mailing list is very kind, and as part of that kindness
I want to offer you some kind advice.
First, no mailing list will have the
patience to teach you every feature of a programming
language, o
On Sat, 16 Apr 2022, to...@tuxteam.de wrote:
On Fri, Apr 15, 2022 at 09:47:11PM -0400, The Wanderer wrote:
On 2022-04-15 at 20:47, Greg Wooledge wrote:
On Sat, Apr 16, 2022 at 08:20:40AM +0800, wilson wrote:
ps -efw |grep $PS |grep -v grep
You're also going to exit your script with the
On Fri, Apr 15, 2022 at 09:47:11PM -0400, The Wanderer wrote:
> On 2022-04-15 at 20:47, Greg Wooledge wrote:
>
> > On Sat, Apr 16, 2022 at 08:20:40AM +0800, wilson wrote:
>
> >> ps -efw |grep $PS |grep -v grep
>
> > You're also going to exit your script with the exit status from that
> > last gr
On Sat, Apr 16, 2022 at 08:06:23AM +0800, wilson wrote:
>
>
> Greg Wooledge wrote:
> > if [ "$1" == on ]
>
> this sounds strange. why a string doesn't need "" around in shell script?
Shell works by text substitution. If you have
foo $bar $baz
the shell first replaces $bar and $baz by their
On Fri, Apr 15, 2022 at 10:58:01PM +, Andy Smith wrote:
> Hello,
>
> On Fri, Apr 15, 2022 at 10:34:25AM -0400, Chuck Zmudzinski wrote:
> > I have an issue with a few websites that seem to hang with ipv6
>
> If you happen to know their IPv6 addresses and can trust that those
> assignments will
On Fri, Apr 15, 2022 at 09:47:11PM -0400, The Wanderer wrote:
> On 2022-04-15 at 20:47, Greg Wooledge wrote:
> > On Sat, Apr 16, 2022 at 08:20:40AM +0800, wilson wrote:
>
> >> ps -efw |grep $PS |grep -v grep
>
> > You're also going to exit your script with the exit status from that
> > last grep
On 4/15/2022 6:58 PM, Andy Smith wrote:
Hello,
On Fri, Apr 15, 2022 at 10:34:25AM -0400, Chuck Zmudzinski wrote:
I have an issue with a few websites that seem to hang with ipv6
If you happen to know their IPv6 addresses and can trust that those
assignments will remain stable then you may prefe
On 2022-04-15 at 20:47, Greg Wooledge wrote:
> On Sat, Apr 16, 2022 at 08:20:40AM +0800, wilson wrote:
>> ps -efw |grep $PS |grep -v grep
> You're also going to exit your script with the exit status from that
> last grep command. That's probably not what you want. If it's not,
> then an explic
On Sat, Apr 16, 2022 at 08:20:40AM +0800, wilson wrote:
> Can you help check if my this script has any issue?
> #!/bin/bash
>
> PORT=$1
> if [ -z $PORT ];then
"$PORT" should be quoted here.
> echo "$0 port"
As a usage message, this is rather minimal. At least put "usage: " in
front of it.
On Sat, 16 Apr 2022 08:20:40 +0800
wilson wrote:
> I didn't know much about shell rules.
> Can you help check if my this script has any issue?
You might look into the shellcheck package. There is an extension to
use it in Emacs, and there may well be extensions for other editors.
--
Does anybo
Greg Wooledge wrote:
But nobody does that. It's simply unnecessary. Likewise, you don't need
quotes around "on" or "off" because they don't contain special characters.
You also don't need quotes around the "==" string argument that was passed
in this command. It's funny that you would think
On Sat, Apr 16, 2022 at 08:06:23AM +0800, wilson wrote:
>
>
> Greg Wooledge wrote:
> > if [ "$1" == on ]
>
> this sounds strange. why a string doesn't need "" around in shell script?
You only need quotes to force a literal interpretation of whitespace or
other special characters, or to suppress
Ash Joubert wrote:
To completely and persistently disable all ipv6 support in the kernel, I
add "ipv6.disable=1" to the Linux command line variable
GRUB_CMDLINE_LINUX in /etc/default/grub, run update-grub, and reboot. If
you have other command line arguments, they are separated by whitespace
On 15/04/2022 23:32, wilson wrote:
What's the good way to disable IPv6 in a debian system?
To completely and persistently disable all ipv6 support in the kernel, I
add "ipv6.disable=1" to the Linux command line variable
GRUB_CMDLINE_LINUX in /etc/default/grub, run update-grub, and reboot. If
Greg Wooledge wrote:
if [ "$1" == on ]
this sounds strange. why a string doesn't need "" around in shell script?
Hello,
On Fri, Apr 15, 2022 at 10:34:25AM -0400, Chuck Zmudzinski wrote:
> I have an issue with a few websites that seem to hang with ipv6
If you happen to know their IPv6 addresses and can trust that those
assignments will remain stable then you may prefer instead to add
prohibited routes for th
On 4/15/22 8:10 AM, wilson wrote:
no. it's the Hadoop system, which has the possible issue with ipv6.
thanks
I would check the documentation for Hadoop - does it have an option to
disable ipv6? I would just disable ipv6 for the app that has the issue
with ipv6, not for the whole system. I
On 4/15/22 12:08 PM, Tim Woodall wrote:
On Fri, 15 Apr 2022, Greg Wooledge wrote:
On Fri, Apr 15, 2022 at 11:21:46AM -0400, Chuck Zmudzinski wrote:
Another improvement to the script would be to have the script toggle
the
default route on or off, depending on the existence or not of the
def
On Fri, 15 Apr 2022, Greg Wooledge wrote:
On Fri, Apr 15, 2022 at 11:21:46AM -0400, Chuck Zmudzinski wrote:
Another improvement to the script would be to have the script toggle the
default route on or off, depending on the existence or not of the default
route, for the case when there is no arg
On Fri, Apr 15, 2022 at 11:21:46AM -0400, Chuck Zmudzinski wrote:
> Another improvement to the script would be to have the script toggle the
> default route on or off, depending on the existence or not of the default
> route, for the case when there is no argument to the script.
That requires some
On 4/15/22 11:12 AM, Chuck Zmudzinski wrote:
On 4/15/2022 10:50 AM, Greg Wooledge wrote:
On Fri, Apr 15, 2022 at 10:34:25AM -0400, Chuck Zmudzinski wrote:
user@debian:~$ cat ipv6
#!/bin/bash
if [ $1 == "on" ]
then
ip -6 route add default via dev
elif [ $1 == "off" ]
then
On 4/15/2022 10:50 AM, Greg Wooledge wrote:
On Fri, Apr 15, 2022 at 10:34:25AM -0400, Chuck Zmudzinski wrote:
user@debian:~$ cat ipv6
#!/bin/bash
if [ $1 == "on" ]
then
ip -6 route add default via dev
elif [ $1 == "off" ]
then
ip -6 route delete default
fi
Quotes are in the
On Fri, Apr 15, 2022 at 10:34:25AM -0400, Chuck Zmudzinski wrote:
> user@debian:~$ cat ipv6
> #!/bin/bash
> if [ $1 == "on" ]
> then
> ip -6 route add default via dev
> elif [ $1 == "off" ]
> then
> ip -6 route delete default
> fi
Quotes are in the wrong place. The [ builtin com
On 4/15/2022 8:10 AM, wilson wrote:
no. it's the Hadoop system, which has the possible issue with ipv6.
thanks
I have an issue with a few websites that seem to hang with ipv6, so I
don't want to disable ipv6 permanently but only temporarily when I want
to access those sites. One class of s
Hi,
please do not top-post.
On Fri, Apr 15, 2022 at 08:35:33PM +0800, wilson wrote:
> Reco wrote:
> > The most non-intrusive way of doing it (side effects considered) is:
> >
> > /sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1
> > /sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=0
>
>
On 15/4/22 9:59 pm, Erwan David wrote:
No. But it won't be kept if you reboot
To make it permanent you need to create the file
/etc/sysctl.d/10-disable_ipv6.conf with the 2 lines
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=0
However make sure no other file in /etc/sy
Le 15/04/2022 à 14:35, wilson a écrit :
after doing this, do I need to restart the OS?
thanks
Reco wrote:
The most non-intrusive way of doing it (side effects considered) is:
/sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1
/sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=0
No. But it w
after doing this, do I need to restart the OS?
thanks
Reco wrote:
The most non-intrusive way of doing it (side effects considered) is:
/sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1
/sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=0
Hi.
On Fri, Apr 15, 2022 at 07:32:01PM +0800, wilson wrote:
> What's the good way to disable IPv6 in a debian system?
The most non-intrusive way of doing it (side effects considered) is:
/sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1
/sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=0
no. it's the Hadoop system, which has the possible issue with ipv6.
thanks
황병희 wrote:
If that is about mail system Postfix, you check this parameter:
> What's the good way to disable IPv6 in a debian system?
Well i don't know debian system. However i'm using Debian 11.
If that is about mail system Postfix, you check this parameter:
#+begin_src text
inet_protocols = ipv4
#+end_src
Sincerely, Linux fan Byung-Hee
--
^고맙습니다 _布德天下_ 감사합니다_^))//
On Tue, Jan 28, 2014 at 6:04 AM, Tanstaafl wrote:
>
> Is there an easy way to do this?
>
> I don't use it, I don't understand it (yet), so I don't want to use it until
> I do understand it.
https://lists.debian.org/debian-user/2014/01/msg00109.html
--
To UNSUBSCRIBE, email to debian-user-requ.
On 28/01/14 22:04, Tanstaafl wrote:
> Is there an easy way to do this?
>
> I don't use it, I don't understand it (yet), so I don't want to use it
> until I do understand it.
>
> Thx
>
>
This question has been asked and answered more than once on this list,
recently.
https://lists.debian.org/
On Sun, Jan 5, 2014 at 9:40 AM, Scott Ferguson
wrote:
> On 03/01/14 04:55, Tom H wrote:
>>
>> When ipv6 is compiled as a module, you can disable it with modprobe or
>> sysctl.
>>
>> When ipv6 is compiled in-kernel, you can disable it in two ways.
>>
>> You can disable the ipv6 stack by adding "ip
On Sun, 05 Jan 2014 20:40:43 +1100 Scott Ferguson sent:
> # netstat -tunlp |grep p6 |wc -l
Just says:
0
Thank you,
Charlie
--
Registered Linux User:- 329524
***
Marriage is the only adventure open to the
cowardly
On Sun, 05 Jan 2014 20:40:43 +1100 Scott Ferguson sent:
> To see what uses IPv6 *and* is running:-
> # netstat -tunlp |grep p6 |more
After that command - nothing - blank back screen with (END) in the
middle.
It's all good.
Thank you.
Charlie
--
Registered Linux User:- 329524
On 03/01/14 04:55, Tom H wrote:
> On Thu, Jan 2, 2014 at 1:53 PM, Bonno Bloksma wrote:
# rmmod ipv6
libkmod: ERROR ../libkmod/libkmod-module.c:1802
kmod_module_get_holders: could not open '/sys/module/ipv6/holders': No
such file or directory Error: Module ipv6 is in u
On Thu, 2 Jan 2014 17:55:50 + Tom H sent:
> On Thu, Jan 2, 2014 at 1:53 PM, Bonno Bloksma
> wrote:
> >>>
> >>> # rmmod ipv6
> >>>
> >>> libkmod: ERROR ../libkmod/libkmod-module.c:1802
> >>> kmod_module_get_holders: could not open
> >>> '/sys/module/ipv6/holders': No such file or directory Err
On Thu, Jan 2, 2014 at 1:53 PM, Bonno Bloksma wrote:
>>>
>>> # rmmod ipv6
>>>
>>> libkmod: ERROR ../libkmod/libkmod-module.c:1802
>>> kmod_module_get_holders: could not open '/sys/module/ipv6/holders': No
>>> such file or directory Error: Module ipv6 is in use
>>
>> So I am certain now that I don'
On 02/01/14 04:08, Charlie wrote:
Apologies, let me say this before I resend it:
Running Jessie: 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04)
x86_64 GNU/Linux
Toshiba c500/A00L w8 laptop
Another thing I would like to do is to disable ipv6 on this system
as satelli
Hello Charlie,
>> # rmmod ipv6
>>
>> libkmod: ERROR ../libkmod/libkmod-module.c:1802
>> kmod_module_get_holders: could not open '/sys/module/ipv6/holders': No
>> such file or directory Error: Module ipv6 is in use
>
> Thank you Ivan and Pi for your help.
>
> I think the message above is spurious
On Thu, 2 Jan 2014 18:08:49 +1100 Charlie sent:
> # rmmod ipv6
>
> libkmod: ERROR ../libkmod/libkmod-module.c:1802
> kmod_module_get_holders: could not open '/sys/module/ipv6/holders': No
> such file or directory Error: Module ipv6 is in use
Thank you Ivan and Pi for your help.
I think the mess
On Thu, 02 Jan 2014 10:39:47 +0100 Ivan Jurišić sent:
> If wont to check loaded modules in memory try:
>
> lsmod
nf_conntrack 70753 7
nf_nat,xt_state,nf_nat_ipv4,xt_conntrack,nf_conntrack_
ftp,iptable_nat,nf_conntrack_ipv4
> or lsmod | grep ipv6
returns nothing?
> then if not fin
If wont to check loaded modules in memory try:
lsmod or lsmod | grep ipv6
then if not find in output "ipv6" that module is not active.
also check with /sbin/ifconfig | grep inet if got any line with "inet6"
in that case You have up & running ipv6.
Dana 02/01/2014 08:22, Charlie je napisa
On Thu, 2 Jan 2014 18:22:09 +1100 Charlie sent:
> On Thu, 02 Jan 2014 07:58:24 +0100 Ivan Jurišić sent:
>
> > Try this:
> >
> > 1. open file /etc/default/grub
> >
> > nano /etc/default/grub
> >
> > 2 add "ipv6.disable=1" in variable GRUB_CMDLINE_LINUX_DEFAULT,
> > example:
> >
> > GRUB_CM
On Thu, 02 Jan 2014 07:58:24 +0100 Ivan Jurišić sent:
> Try this:
>
> 1. open file /etc/default/grub
>
> nano /etc/default/grub
>
> 2 add "ipv6.disable=1" in variable GRUB_CMDLINE_LINUX_DEFAULT,
> example:
>
> GRUB_CMDLINE_LINUX_DEFAULT="quiet ipv6.disable=1"
>
> 3. last step, update gru
Try this:
1. open file /etc/default/grub
nano /etc/default/grub
2 add "ipv6.disable=1" in variable GRUB_CMDLINE_LINUX_DEFAULT, example:
GRUB_CMDLINE_LINUX_DEFAULT="quiet ipv6.disable=1"
3. last step, update grup and reboot PC:
update-grub
reboot
Dana 02/01/2014 07:47, Charlie je na
James Brown on 08/10/10 08:11, wrote:
Just a quick question - can I disable IPv6 for my whole machine?
"
You can disable IPv6 system-wide by editing your module configuration
file. This is usually one of /etc/modprobe.conf or
/etc/modprobe.d/aliases, depending on your distro. Remove any referenc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam Hardy wrote:
> James Brown on 07/10/10 15:52, wrote:
>> Adam Hardy wrote:
>>> Just a quick question - can I disable IPv6 for my whole machine?
>>>
>>> I mean apart from changing some kernel compilation flags.
>>>
>>> I have two software apps which
James Brown on 07/10/10 15:52, wrote:
Adam Hardy wrote:
Just a quick question - can I disable IPv6 for my whole machine?
I mean apart from changing some kernel compilation flags.
I have two software apps which are meant to be interacting with each
other and with servers on the net, but they ar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam Hardy wrote:
> Just a quick question - can I disable IPv6 for my whole machine?
>
> I mean apart from changing some kernel compilation flags.
>
> I have two software apps which are meant to be interacting with each
> other and with servers on th
On Thu, 07 Oct 2010 13:46:23 +0100, Adam Hardy wrote:
> Just a quick question - can I disable IPv6 for my whole machine?
Yes, you can :-)
> I mean apart from changing some kernel compilation flags.
(...)
This may help:
http://wiki.debian.org/DebianIPv6
Greetings,
--
Camaleón
--
To UNSU
On Thu, 07 Oct 2010 13:46:23 +0100
Adam Hardy wrote:
> Just a quick question - can I disable IPv6 for my whole machine?
http://www.debian-administration.org/article/Disabling_IPv6_under_a_2.6_kernel
http://www.karkomaonline.com/index.php/2009/04/how-to-disable-ipv6-in-debian/
http://www.cybercit
On 10/07/2010 02:46 PM, Adam Hardy wrote:
Just a quick question - can I disable IPv6 for my whole machine?
I mean apart from changing some kernel compilation flags.
I have two software apps which are meant to be interacting with each
other and with servers on the net, but they aren't and they a
60 matches
Mail list logo