LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 12-10-2004, 01:23 PM   #1
rsumbeling
Member
 
Registered: Nov 2004
Location: Toronto, Ontario
Distribution: slackware, redhat
Posts: 42

Rep: Reputation: 15
Unhappy Can't create file using echo: /proc/sys/net/ipv4/ip_local_port_change


Hi,

I trying to create a file using echo and redirection: /proc/sys/net/ipv4/ip_local_port_change by this command:


# echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_change
--------
An error message is displayed:

sh: /proc/sys/net/ipv4/ip_local_port_change: No such file or directory
--------
I even tried to use cat and vi, but the seems like i can't create the file...


Can anyone help me resolve this problem?
 
Old 12-10-2004, 01:41 PM   #2
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
try using 'touch' eg
# touch /proc/sys/net/ipv4/ip_local_port_change
then vi or >
also try
# echo "1024 65000" > /proc/sys/net/ipv4/ip_local_port_change

i hope you know what your doing in the proc directiry... im scared of it.
 
Old 12-10-2004, 01:53 PM   #3
rsumbeling
Member
 
Registered: Nov 2004
Location: Toronto, Ontario
Distribution: slackware, redhat
Posts: 42

Original Poster
Rep: Reputation: 15
Unhappy

thanx crm, but the file does not yet exist, so it still gives me error message that the file does exist using touch command... i tried creating that file in my local directory then tried copying that file to that directory, but the shell tells me that cannot create regular file. What should i do?


thanks
 
Old 12-10-2004, 02:24 PM   #4
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
im having a similar experience trying to recreate the problem.

i think the issue uis that 'proc' is more of a image of your running PROCesses then an actual directory - perhaps theres another way to achieve the desired result?
 
Old 07-17-2013, 04:20 AM   #5
girishankaran
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by rsumbeling View Post
thanx crm, but the file does not yet exist, so it still gives me error message that the file does exist using touch command... i tried creating that file in my local directory then tried copying that file to that directory, but the shell tells me that cannot create regular file. What should i do?


thanks
Hai,
May i know, how did you fix this issue?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/sys/fs/file-nr ?? jharris Linux - General 5 07-27-2009 06:07 PM
echo '214748364' > /proc/sys/kernel/shmmax rubendarioportillo Suse/Novell 1 11-03-2005 06:05 PM
echo '214748364' > /proc/sys/kernel/shmmax SwannAnderson Linux - General 2 11-03-2005 02:54 PM
/proc/sys/net/ipv4/ip_local_port_range wetwet Linux - Networking 0 07-06-2004 08:47 AM
default values for /proc/sys/net/ipv4 robeb Linux - Networking 0 06-07-2002 12:35 AM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration