Net-SNMP - Run a command as root with "extend" featureview story

http://www.linuxquestions.org – Using the extend feature in snmpd.conf I can see the command is being ran as root but does not have root privs. Take this example of an snmpd.conf: Code: rocommunity whatev extend .1.4 test0 /usr/bin/whoami (HowTos)

about ldd command !view story

http://www.linuxquestions.org – Friends , I read the manual of the 'ldd' command in Linux , using the ldd command I got the below output : 1) bash-3.00$ ldd libclntsh.so libclntsh.so needs: /usr/lib/libpthreads.a(shr_xpg5_64.o) /usr/lib/libc.a(shr_64.o) /usr/lib/libdl.a(shr_64.o) /usr/lib/libodm.a(shr_64.o) (HowTos)

Automating SFTP in Bash with password?view story

http://www.linuxquestions.org – Hi, (HowTos)

Parse multiple variable from text file with bashview story

http://www.linuxquestions.org – Hello everyone :) I am trying to think of a logic where my file contains some data I had to read and do some processing. Issue is that file contains data multiple times. For example: ::::::::::: var1=value1 var2=value2 ::::::::::: var1=value3 var2=value4 ::::::::::: (HowTos)

[SOLVED] In bash, how do you show prints and at the same time redirect it to a file?view story

http://www.linuxquestions.org – Hello, I have this script in the past for csh: Code: ./a.out |& tee prints.txt which will redirect all printfs in the C program to the prints.txt file and at the same time show them in the console. How do you do this in bash? (HowTos)

bashrc error, while shourcingview story

http://www.linuxquestions.org – Hi, I created a bashrc file, based on cshrc file. When I try to source it, I am getting 2 kinds of errors (each on different servers) On one I see, line 14: [: ==: unary operator expected And on other I see, if: Expression Syntax. What could be wrong with my code below ? Please help. Code: #!/bin/bash (HowTos)

cd inside if than statement, after fi back to old dirview story

http://www.linuxquestions.org – the script below prints the pwd of where I want to be. after the fi it puts me back at the original dir. just writing these scripts to understand what's going on. #! /bin/bash if [ -d mydir ] then cd mydir/ && pwd fi (HowTos)

Bash Conditions: "(" versus "["view story

http://www.linuxquestions.org – Greetings! I have a question about conditions in Bash scripts. I would like to know the difference between the use of parentheses and square brackets. (HowTos)

Grep error in Bashscriptview story

http://www.linuxquestions.org – While running bashscript i.e. checkdump I am getting error. Quote: #cat checkdump #!/bin/bash cd /dump_restore/outputs/dump/daily/ dt=date | awk '{print $2}' echo "########Checktime#######" ls -ltr | tail -1 | awk '{print "cat " $9}' | sh | grep $dt Output (HowTos)

Bash Script -- I'm stumpedview story

http://www.linuxquestions.org – echo $overwriteWorkspaceEnv if [ $overwriteWorkspaceEnv="yes" ]; then echo new workspace else echo old workspace fi This is what prints out: no new workspace (HowTos)