10-04-2012
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
When I give the following
$ ps -ef | grep `echo $var1` | grep -v "grep `echo $var1`" | awk '{print $3}' | grep -v `echo $var1
80892
But when I give the following (made as command substitution) , I get error
$var2=`ps -ef | grep `echo $var1` |... (2 Replies)
Discussion started by: preetikate
2 Replies
2. Programming
hi,
when i try to compile, i got the following error message, what does it mean?
$gcc auto.cpp
/usr/tmp/ccmuE12B.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
thanks (1 Reply)
Discussion started by: laila63
1 Replies
3. Shell Programming and Scripting
When I start ed as regular user, following message is displayed:
$ed
ERROR: tempnam failed: Permission denied
$
I think, following error produced in vi when search results from previous error:
No previous regular expression
Setting TMPDIR variable cause no effect.
As root all works... (6 Replies)
Discussion started by: frenki
6 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
i executed a script.
cat <filename> | grep <pattern> | awk '{print $1}' | read a
i get the answer when i execute it in the shell env (no problem with that)
as
./<name>.ksh
when i tried the same in cron (as an entry in cron)
value is not being read in the variable a through... (1 Reply)
Discussion started by: matrixmadhan
1 Replies
5. AIX
All,
I am trying to copy some data from /admin/reports/Sept/ccn/c_ivsstr01 to /home/users/myhomedir and I am getting an error I have never seen before:
The file access permissions do not allow the specified action.
The permissions on the file are -rw-r--r-- and I am the owner of the file... (3 Replies)
Discussion started by: kjbaumann
3 Replies
6. Shell Programming and Scripting
I have a shell script which mails a file. It runs fine when executed at prompt, but from cronjob the following line gives an error:
$ /opt/local/bin/mpack -s "TTW posts " $FILEPATH/ttw.html myemail@gmail.com
Error is : (some junk chars) followed by No such file or directory.
Before this... (5 Replies)
Discussion started by: sentinel
5 Replies
7. Shell Programming and Scripting
Hi folks
I am facing a strange error while splitting a '|' delimited file 'file1' based on column '3'. (File is 40 columns wide).
I wish to create as many files 'file_n' from the file 'file1' as distinct values of the column '3'; in 'file1'
eg: file1:
qwe|qweqw|123|fg... (3 Replies)
Discussion started by: powerslave
3 Replies
8. Shell Programming and Scripting
Howdy all, I have a scritp that does a sqldump. But for some goofy reason, a certain part of it behaves uber strange.
It does a daily dump of my sql, according to parameters I enter in hardcode.
The script is:
#!/bin/bash
APP_NAME="app_com_site"
wikiname="wiki_com_site"
... (8 Replies)
Discussion started by: saariko
8 Replies
9. Shell Programming and Scripting
more run.sh
!/bin/bash
input="data.txt"
while IFS= read -r var
do
startdir="/web/logs"
searchterm=$(echo $var | awk -F'=' '{print $1}')
replaceterm=$(echo $var | awk -F'=' '{print $2}')
find "$startdir" -type f -exec grep -l "$searchterm" {} + |
while read file
do if sed -e... (1 Reply)
Discussion started by: mohtashims
1 Replies
SYSMON(8) System Manager's Manual SYSMON(8)
NAME
sysmon, stats - display graphs of system activity
SYNOPSIS
sysmon [ machine [ -option ] ]
stats [ -option ]
DESCRIPTION
Sysmon displays a rolling graph of various statistics collected by the operating system. The statistics may be from a remote machine. A
sample value is taken once per second. The number in the top left corner of the graph gives the peak value for the duration of the graph.
Lines across the graph represent 75%, 50%, and 25% of the peak value. Clicking a mouse button anywhere in the window cycles through the
list of parameters to monitor; an option letter sets the initial choice. The option letters and parameters are:
[m] mem
total pages of active memory. The memory is displayed as a fraction of the machine's total memory.
[e] ether
number of packets sent and received per second.
[w] swap
number of valid pages on the swap device. The swap is displayed as a fraction of the number of swap pages configured by the
machine.
[c] contxt
number of process context switches per second.
[i] intr
number of interrupts per second.
[f] fault
number of memory faults per second.
[t] tlbmiss
number of translation look-aside buffer misses per second.
[p] tlbpurge
number of translation lookaside buffer flushes per second.
[l] load
system load average. The load is computed as a running average of the number of processes ready to run multiplied by 1000 to give
some precision.
The stats program is invoked by sysmon to display the graph.
FILES
/net/*/[0-n]/stats
#c/sysstat
SOURCE
/rc/bin/sysmon
/sys/src/cmd/stats.c
BUGS
Some machines do not have TLB hardware.
SYSMON(8)