Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-31-2001, 05:54 AM   #1
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
access denied - but why?

Hi everyone!

I'm trying to run a script on my Suse 7.0:
it calls

VAL_ETH0=´cat /proc/net/dev | grep eth0 | awk ' { print $2} '´

and I get

/proc/net/dev - access denied

even though I am running the script as root

A script that just calls

cat /proc/net/dev | grep eth0 | ...

will work fine though.

What am I doing wrong here????

(The script is to shut down my computer when there's no traffic on the network)

For more info search for shutdown tool in forum networking...
Old 08-31-2001, 06:04 AM   #2
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Original Poster
Rep: Reputation: 30
Nevermind. Found the problem myself: ´ is just not the same as ` - too bad.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied aje Linux - Newbie 7 10-18-2004 08:48 PM
Access denied?? Jaster Linux - Software 9 07-25-2004 07:42 PM
Access is Denied? sKiBa Linux - Newbie 7 06-12-2004 10:28 AM
access denied crossfire_mania Linux - Software 2 01-28-2004 07:14 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM > Forums > Non-*NIX Forums > Programming

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

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