9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
2. UNIX for Dummies Questions & Answers
Hi Experts,
I need some suggestion on file grep.
I am trying to find multiple pattern with the file grep as below
grep "2013" trace.log | grep -f pattern.cfg -i > $LOG
if ; then
mail -s "Exception" "sample@abc.com" < $LOG
fi
Is it possible to obtain what pattern I got in the... (5 Replies)
Discussion started by: senthil.ak
5 Replies
3. UNIX for Dummies Questions & Answers
Guys, I have the following code
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
void read2();
main(int argc, char** argv)
{
int pid,status;
pid=fork();
if ( pid == 0 )
{
read2(argv,... (4 Replies)
Discussion started by: pfpietro
4 Replies
4. Solaris
Hi,
iam trying to use lofiadm in solaris 5.10 but getting the following error..
bash-3.00# lofiadm -a /asmdisks/_file_disk1
lofiadm: /dev/lofictl: No such file or directory
i dont see lofictl file in /dev ..
i checked in other similar machines..i found this file..can i export this file from... (2 Replies)
Discussion started by: rags_s11
2 Replies
5. Shell Programming and Scripting
Just a quick question on grep/egrep.
I am writing a shell script that is looking for certain strings in a text file. It works well and gets exactly what I need.
However, the way the program writes to the text file, it puts the timestamp in a line above the string I am looking for and the path... (3 Replies)
Discussion started by: thecoffeeguy
3 Replies
6. Shell Programming and Scripting
Hallo friends,
I have a log file called xxx.log which is generated everymorning.
I want to change this file to xxx_.log
Please assist, i am using ksh on AIX.
Ta,
Pax (4 Replies)
Discussion started by: kekanap
4 Replies
7. Shell Programming and Scripting
I have one script that named testing.sh
#cat testing.sh
#/bin/bash
echo "Enter your name:"
read name
#./testing.sh
Enter your name:
Sanjay
What I need it should take Input in the same prompt(mean to say dun go for next line) like given below.
#./testing.sh
Enter your name:Sanjay
... (1 Reply)
Discussion started by: SanjayLinux
1 Replies
8. UNIX for Dummies Questions & Answers
hey guys
i'm new in this world " unix "
i wanna any websites can help me to learn unix
or any websites i can download UNIX from it
thanks
:D (3 Replies)
Discussion started by: M_Hafez
3 Replies
9. UNIX for Dummies Questions & Answers
Is it possible to grep for two words at once? I want to grep for the words SEVERE or FATAL.
Thanks. (1 Reply)
Discussion started by: ssmiths001
1 Replies