9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm building a script that may received start and end date as parameters. I whant to make it as flexible as possible so I'm accepting epoch and date in a way that "date --date=" command may accept. In order to know if parameter provided is an epoc or a "date --date=" string I evaluate if the value... (2 Replies)
Discussion started by: lramirev
2. UNIX for Dummies Questions & Answers
:confused:i would like to know how can i determine
the total/approx memory used by a single user. Example Top output is below
top - 20:00:50 up 24 days, 2:48, 2 users, load average: 0.43, 0.40, 0.37... (3 Replies)
Discussion started by: cromohawk
3. UNIX for Dummies Questions & Answers
I have a problem. I made a script (that I am very proud of - never scripted before) that kills off idle sessions based on who -u. The problem is it is killing sessions that aren't truly idle. who -u reports them as being idle for 7 hours, when in reality they have been using a program for that... (5 Replies)
Discussion started by: raidzero
4. Shell Programming and Scripting
Hi , this peice of code is working for one file but not for multiple files.
Can some one please tell me the reason???
for i in `ls -1 | egrep ''SOM.*` ; do
filename=$(ls -1 $i)
print "Skipping file $i since it already has... (1 Reply)
Discussion started by: somanath Patrud
5. Shell Programming and Scripting
cat input.sh | awk '
rsh $cur1 report | grep $cur2
Have a look at the above code, the input.txt file contains two words in each line with space as delimiter, the first word is computer name and the 2nd word is file... (2 Replies)
Discussion started by: geeko
6. IP Networking
In my program I have a structure as shown below:
i have assigned the following values to it:
The client is tryin to send struct data to the server using
send(sock,(char *... (2 Replies)
Discussion started by: mridula
7. UNIX for Dummies Questions & Answers
Hopefully someone can help me.
We have a old Unix box for the accounts people. What id like to do is query it for the intranet. Trouble is im not sure what type of database the server uses.
How would i go about finding out what it is? I have complete access to the hardrive and... (2 Replies)
Discussion started by: RageMonkey
Using HP-UX v11
Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode.
Found out next ways to monitor total cpu usage under hp-ux:
1) vmstat, also shows free memory
2) sar -M
ps -eo user,pcpu - does not work, means 'user-defined format'... (4 Replies)
Discussion started by: hp-ux-user
9. UNIX for Dummies Questions & Answers
I have a console server that runs some form of UNIX/Linux, but I get a bash shell, and I want to determine how many processor (what speed) and them amount of RAM in the system. (2 Replies)
Discussion started by: bbrandeb49