05-21-2008
accesing a value
hi
while [ $count -lt $var ]
do
if [ $count = 0 ]
then
echo QManager Name $1
fi
if [ $count = 1 ]
then
echo Cluster Name$2
fi
if (( $count != 0 && $count != 1 ))
then
echo Queue Name `$($count)`
fi
count=`expr $count + 1`
done
when i run this i am getting an error
command not found Queue Name
please help
2 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there any command/script to find a list of all users accessing a particular directory (from all machines on the network??) (3 Replies)
Discussion started by: mehtad
3 Replies
2. Programming
$ gcc -Wall -Werror struct.c
struct.c: In function `main':
struct.c:18: error: dereferencing pointer to incomplete type
$ cat struct.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*Declaration of structure*/
struct human
{
char *first;
char gender;
int age;
} man,... (3 Replies)
Discussion started by: amit4g
3 Replies