05-21-2008
Hi,
even the one you gave doenst seem to be working!!!!
I get an error like this,
"syntax error @ line 10 : '(' unexpected"
This is in reference to the pct=.....
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I got a script from one of the unix forums for reporting on filesystem usage and wanted to use it but it keeps giving me the following error.
0403-057 Syntax error at line 70
The script is shown below.
Pls help as I am new to UNIX.
# set -x
# D I S K S P A C E . S H
#
#... (2 Replies)
Discussion started by: OMONI
2 Replies
2. Shell Programming and Scripting
Iam a learner of UNIX. Fortunately I got this site.
I want to check the file for its existance.
if
echo " Not present"
else
echo "Present"
fi
The above code is working fine. But I also want to check for the files which are compressed.
I tried the following code and it is not... (5 Replies)
Discussion started by: ganapati
5 Replies
3. Solaris
Hi Gurus,
I have several Solaris systems (say system a, system b,system c) which will connect to a windows system (system Z) using SFTP session.
I have a 'txt' file on System Z , which has a simple numeric value on it(say 1) , If I have to increment this number with 1 (1+1 =2) irrespective of... (3 Replies)
Discussion started by: ramky79
3 Replies
4. Programming
Hi All,
I have written a code in tcl which is supposed to open an GUI in which numbers will be entered & after performing selected operation it wil show a result.
#!/usr/local/bin/wish
#package require Tk
#global opr
proc DoOperation {} {
global opr
set fstno
set scdno
set result ... (2 Replies)
Discussion started by: milindb
2 Replies
5. Shell Programming and Scripting
I am not sure what I am doing wrong here, I did some research and only confused myself further. Any help would be greatly appreciated. I need to make this work for work tomorrow.
There are only 34 lines of code in this script, yet its complaining about line 35
Here is the code:
... (7 Replies)
Discussion started by: BkontheShell718
7 Replies
6. Solaris
I'm trying to generate this key but getting an error "file not found"
Here is the command:
# ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (//.ssh/id_dsa): /export/home/bartadm/.ssh/id_dsa
Enter passphrase (empty for no passphrase):
Enter... (2 Replies)
Discussion started by: Kjons76
2 Replies
7. Programming
the error occurs in the function() "add" used...
#include<stdio.h>
#include<malloc.h>
struct node
{
int exp;
int coef;
struct node * link;
};
struct node * create_list(struct node *,int,int);
void display(struct node *);
struct node * add(struct node *,struct node *);
... (3 Replies)
Discussion started by: mscoder
3 Replies
8. Shell Programming and Scripting
Hi everybody
I'm working on a list of registers(flip-flops to be exact), now i need to extract some value from this list and use them as arguments to pass them to some assembly code
for example i have:
118 chain79 MASTER (FF-LE) FFFF 1975829 /TCK F FD1TQHVTT1 ... (1 Reply)
Discussion started by: Behrouzx77
1 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I am attaching a code snippet. Some of the variables are set in earlier code like count, arrays harr1, harr2, barr1 and barr2. The code below gives syntax errors. I am very new to Bash.
for (( i=0; i<=$(( $count -1 )); i++ ))
do
#Now read the element at barr2 location i. Also find... (2 Replies)
Discussion started by: ngabrani
2 Replies