How to use select into command in shell script?view story

http://www.unix.com – I need to get total number of rows in a table by using select count(*) from table and need to assign into a variable in shell script. (HowTos)

centos 6.1 86*64 failed to update or install any packageview story

https://www.centos.org – Hi ...I request your help please !when i put in terminal any command like yum updateLoaded plugins: dellsysid, fastestmirror, priorities, refresh-packagekitLoading mir... [by jules] (Distributions)

Convert a typescript file to a list of commands (history)view story

http://unix.stackexchange.com – I wanted to record a linux session so I could use it as documentation for a "how to install" guide. (HowTos)

error when mounting nfs network-share in linuxview story

http://serverfault.com – I'm trying to mount a nfs network share in various OSs (ubuntu 10.10/10.10 server/11.10) but continually get the same error: mount.nfs: access denied by server while mounting 128.251.xxx.xxx:/Systems I have verified that I have nfs-common installed on my machine. (HowTos)

Cacti System Utilities says wrong RRDTool and Graphs dont show upview story

http://serverfault.com – Im using Cacti to try to monitor our network: www.cacti.net My graphs are just showing broken image links. (HowTos)

SHUTDOWN /S /M \\RemoteMachine and windows updates?view story

http://serverfault.com – I have WSUS configured using group policy to deploy windows updates every Tuesday. I also have batch files that run at 11PM every night (except Tuesday) that shutdown the workstations in the company. Often after updates are downloaded and installed, the option is shown to 'install updates and shut down'. (HowTos)

display sco unix 5.0.6 samba usageview story

http://unix.stackexchange.com – Is there a command on sco unix which will show which files are being accessed by the samba process ? Something like lsof in linux maybe, or similar. (HowTos)

Nagios not accepting regex in commandview story

http://serverfault.com – I have this command defined: define command{ command_name check_http_sane command_line $USER1$/check_http -H $HOSTNAME$ -r "HTTP/1.1 (200|301|302|303|304|307|401|418|426)" } When I run it manually on command line, it works fine, but nagios (2.6) reports a "pattern not found" error. Do I need to escape something? (HowTos)

fork: Cannot allocate memoryview story

http://askubuntu.com – frequently getting 'fork: Cannot allocate memory' when running commands over ssh. I have 4Gb of RAM and usually 2Gb free. This happens since I've upgraded ubuntu to 11.10. Drives me crazy already. I then need to repeatably run command until it finished successfully. Any idea why? (HowTos)

How to determine / make sure whether hard-disks have spun down when using "hdparm" options?view story

http://askubuntu.com – I want to spin down some hard-disks when they are idle. So I used hdparm package. In the /etc/hdparm.conf I added following lines: command_line { hdparm -Ss 241 /dev/sda } My intention was to spin down hard disk after 30 minutes of idle time. However, my problem is, how I know for sure whether hard disk has spun down (assuming that it had exceed idle time of 30 minutes)?? Any ideas? Tips?? (HowTos)