FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 05-13-2010, 12:47 AM
"Robert P. J. Day"
 
Default since when did "sysctl" not require "-w" to make a change?

needing to make a change under /proc/sys and, following the
instructions on a web page, typed the following:

$ sudo sysctl vm.mmap_min_addr=0

now, sure enough, it worked, but the man page for "sysctl" suggests
that, to simply change a value like this, you need the "-w" option:

$ man sysctl
...
variable=value
To set a key, use the form variable=value where variable is the
key and value is the value to set it to. If the value contains
quotes or characters which are parsed by the shell, you may need
to enclose the value in double quotes. This requires the -w
parameter to use.

ignoring that last bit of tortured syntax, doesn't that read as that
you *must* use -w to effect a change? that's what i'd always thought.

rday


--

================================================== ======================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
================================================== ======================

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 05-13-2010, 05:53 PM
Frans Ketelaars
 
Default since when did "sysctl" not require "-w" to make a change?

On Wed, 12 May 2010 20:47:40 -0400, Robert P. J. Day wrote:

> needing to make a change under /proc/sys and, following the instructions
> on a web page, typed the following:
>
> $ sudo sysctl vm.mmap_min_addr=0
>
> now, sure enough, it worked, but the man page for "sysctl" suggests
> that, to simply change a value like this, you need the "-w" option:
>
> $ man sysctl
> ...
> variable=value
> To set a key, use the form variable=value where variable is the
> key and value is the value to set it to. If the value contains
> quotes or characters which are parsed by the shell, you may need
> to enclose the value in double quotes. This requires the -w
> parameter to use.
>
> ignoring that last bit of tortured syntax, doesn't that read as that
> you *must* use -w to effect a change? that's what i'd always thought.

http://www.linux.com/archive/feature/146599 states: "You may not even
need the -w option -- it seems to be deprecated. Do some experimenting on
your own to confirm that."

It seems the man page / documentation is outdated

-Frans



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 03:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org