10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings!
Just a basic syntax question :)
Today, I want to launch a perl script from the command line with an explicit path to wherever perl may be installed on any particular system. In my bumblings, I came up with this:
which perl | /etc/something.plOf course it doesn't work; but I was... (2 Replies)
Discussion started by: LinQ
2 Replies
2. Solaris
I am into
cd /home/work/amey/history-*/
Under amey I have directories
history, history-1, history-2 and under history-2 I have got 2 files 3 and 2.
When I run the find command I get the below o/p.
find /home/work/amey/history-*/. -name . -o -prune -type f
/home/work/amey/history-1/.... (1 Reply)
Discussion started by: ameyrk
1 Replies
3. Shell Programming and Scripting
Hi
I have a program
int main(int srgc, char *argv)
{
for(int i=1; i<50; i++)
{
system("dd if=/dev/zero of=file$i bs=1024 count=$i");
}
return 0;
}
My doubt is how to use the "$i" value inside C code
Please help (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
4. Shell Programming and Scripting
Hi All ! I am trying to copy all files with extension .sh to one folder, following command I am using
find . -name \*.sh -print0 | xargs -I{} -0 cp -v {} Scripts/
above command working fine but I have some .sh file with same base name different directory, so I would copy all .sh file including... (5 Replies)
Discussion started by: Akshay Hegde
5 Replies
5. Shell Programming and Scripting
Hello,
i`m creating an script that collect`s data from virtual machines about cpu usage and store that data into RRD.
so everything now works fine, but it takes long time if in machine is a lot of virtual`s.
so i want to make my script to collect information with 1 request. at this time... (3 Replies)
Discussion started by: grauzikas
3 Replies
6. UNIX for Dummies Questions & Answers
i have this basic piece of code to look for an aging file based on an input parameter.
pfile=$1
pdir=`pwd`
echo current directory $pdir
for i in `find . "$pfile" -mtime +540`
do
echo aging files $i
done
# put a white space
echo
the above code works and gives me the listing of... (6 Replies)
Discussion started by: wtolentino
6 Replies
7. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
8. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
9. Solaris
is there any way to search the file using find command, so that it searches for the file considering the file name as case in-sensitive
For example file name is AbcD.txt
but i'm not sure of the file name just remember it was abcd.txt
find / -name "abcd.txt" -print
how do we go bout the... (2 Replies)
Discussion started by: raman1605
2 Replies
10. UNIX for Advanced & Expert Users
I usually ise find to search a file or name on the unix, since I am not administrator, there will be many line appear 'cannot access',usually a hundred of lines. How can I prevent this line coming out? only show I want?
The command I use is :
find / -name abcdef -print
Thank all expert. (1 Reply)
Discussion started by: zp523444
1 Replies