Hello, I am (trying) to write a script that will check to see how many users are logged on to my machine, and if that number is more than 60 I need to kill off all the oldest sessions that are over 60. So far I have been able to check how many users are on and now I am at the part where I have to... (3 Replies)
Hello,
How to add numbers that are read from a file /tmp/test
The content of the file look like
1234
234
432
1235
123
I read the file content in a for loop
f=/tmp/test
for i in `cat $f`
do
.
.
done
Santhosh (11 Replies)
Thanks for allwoing me to discuss in this forum
GIVEN BELOW A simple shell script which will ask for the user to input a PC name and it will produce the output in CSV with the PC name
#! /bin/bash
read -p "enter the PC name :" pc
#checking for netstat report
netstat -pant |sed '1,2d'... (1 Reply)
Hi,
I need to number the lines in my text file. I know how to do this with standard numbering (1,2,3,4, etc) but I need to count in multiples of 5, beginning 0,5,10,15...
example existing file:
abcd
efg
hijklm
nopqrs
desired output
0 abcd
5 efg
10 hijklm
15 ... (11 Replies)
Can anyone help me the detailed procedure and commands to follow to add additional swap on aix server .
My system shows following as of now ,
#lsattr -E -l sys0 -a realmem
realmem 13893632 Amount of usable physical memory in Kbytes False
#pstat -s
PAGE SPACE:
USED PAGES FREE... (7 Replies)
In the attached file I am trying to use awk to extract multiple values and create the tab-delimited desired output.
In the output R_Index is a the sequential # and Pre_Enrichment is defaulted to ..
I can extract from the values to the side of the keywords, but most are above and I can not... (2 Replies)
Hello
Current working script is :
#
# my_script BEGIN
#
function a_function {
FIRST_PARAM="$1"
DO_SOMETHING "$FIRST_PARAM"
}
export -f a_function
START_HERE="/home/some_user/Documents"
find $START_HERE" -exec bash -c 'a_function "$0" ' {} \; (5 Replies)
Discussion started by: jcdole
5 Replies
LEARN ABOUT DEBIAN
vite
VITE(1) ViTE Manual Pages VITE(1)
..___________..._
__vXXX=========onn=XX=X=s_..
_a=X=============v:|||||i:lvvn=Xn_,
"!XX===========v||||||||||||iiiv=Xn_
-"!XX======v||||||||||||iii:::vn=Xs
""!!!Zl|||||||||||iii::lIlvvnXX,.
Jl||||||||||i:vvvvlIvvvvv=Zc
_e|||||||||ia}"""""!=anvnvnnXno=========aa_.
]l||||||||v}' "Xnnnnnn=o=====XXXX=adZ=__
=||||||||n( .3nnnon=======X=Xs..___X|%!n_,
)1||||||i;^ 3=noo=======X=XXXZ1v|i|||||iIs,
X||||||a! 3=n========X=X=X=Ii||||||||||iIs,
.Jl|||va! .==o=o=====X=XXX=li|||||||||||||i3..
)na:!"` =========X=XX=1:|||||||||||||||||)a
.. .========X=XXIIi||||||||||||||||||v}
X=====X=X=1l|i|||||||||||||<a>}""^
.X===X==1Ii||||||||||||<a>""`:
+X=nI:i|||:llv_asl}"""`
-ni||<c"^.
-1%<e.
!3`
NAME
vite - a visual trace explorer
SYNOPSIS
vite
vite -h
vite [-f|-a] file_path [-e export_path] [-t [time_init]:[time_end]]
DESCRIPTION
ViTE is a visual trace explorer. It is a useful tool for profiling and debugging parallel programs (multi-process or multi-core).
ViTE reads program execution trace data from file (currently in Paje trace format) and display it in a graphical interface. Program execu-
tion data could be a state (drawn as a colored rectangle - color depends of the kind of state), an event (drawn as a green disc) or a com-
munication between two processes (drawn as a white arrow).
OPTIONS
ViTE accepts the following options:
-h Display help.
-f file_path
Open the file_path file.
-a file_path
Open the file_path file and display it entirely.
-e export_path
Export the opened trace file (with -f or -a option) to the export_path file in SVG format.
-t [time_init]:[time_end]
Just parse trace from time_init to time_end.
If time_init is missed, trace will be parsed from the minimum time to time_end.
If time_end is missed, trace will be parsed from time_init to the maximum time.
AUTHORS
ViTE was created by a group of french engineering school students for the INRIA research center.
REPORTING BUGS
Report bugs to ViTE developers <vite-developpeurs@lists.gforge.inria.fr>.
COPYRIGHT
ViTE was released under the CeCILL-A licence. The content can be found here: http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt.
Copyright (C) 2009 Kevin COULOMB
Copyright (C) 2009 Johnny JAZEIX
Copyright (C) 2009 Olivier LAGRASSE
Copyright (C) 2009 Jule MARCOUEILLE
Copyright (C) 2009 Pascal NOISETTE
Copyright (C) 2009 Arthur REDONDY
Copyright (C) 2009 Clement VUCHENER
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Version 1.2 April 2009 VITE(1)