9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I have written one shell script where I should call a function by passing variables to the actual function based on some condition.
Each time I run the script I am getting the below error
dsadm@bunyipd: /var/datastage/FRPDEVL/work/script> sh MClub_Validations.sh
Iteration: 1... (1 Reply)
Discussion started by: tpk
1 Replies
2. Shell Programming and Scripting
Hi All
I have two shell scripts where the second is getting invoked from the first. E.g.
test1.sh and test2.sh Within test1, the code is something like this:
#!/bin/bash
. test2.sh
usage() {
echo "..."
echo "....."
}
SRC=$1
DEST=$2
case "$3" in
tran) doTran ;;
*)... (7 Replies)
Discussion started by: swasid
7 Replies
3. UNIX for Advanced & Expert Users
Hi,
We have installed linux6(RHEL) OS and installed datastage application on that.
First time installation worked fine and our all services related to datastage was up and running.
When we stopped the datastage and restarted its giving below error while restart:-
./uv -admin -start
... (0 Replies)
Discussion started by: prasson_ibm
0 Replies
4. UNIX for Dummies Questions & Answers
Hi Friends,
While calling a function in below scipt
func_serv_logs ()
{
find . -type f \( \( -name 'WLS*' -o -name 'access*' \) -a ! -name '*.gz' -a ! -newer ${REFERENCE} \) -print | while read FILENAME
do
echo "hi"
done
}
func_serv_logs
I am getting error... (4 Replies)
Discussion started by: Jcpratap
4 Replies
5. Programming
this is my code and no matter what record number the user enters i cant get any of the records fields to read into the structure acct. What am i doing wrong?
#include <stdio.h>
typedef struct
{
char name;
int number;
float balance;
} acct_info_t;
int main (int... (0 Replies)
Discussion started by: bjhum33
0 Replies
6. Shell Programming and Scripting
Hi all
I am inserting record in oracle database using shell script. When the sql part is directly written in the shell script the record is getting inserted. But when the same piece of code is added into a function, I am getting an error while execution "line 45: syntax error: unexpected end of... (6 Replies)
Discussion started by: sudeep.id
6 Replies
7. Shell Programming and Scripting
Hey everyone.
I am currently testing my first function based BASH script. The ultimate goal is going to be moving logs from point A to point B (or if B is down, to point C).
Part of this involves the following function:
function testAlive{
ping -c 1 -q $1
}
Now when I run ping -c... (1 Reply)
Discussion started by: msarro
1 Replies
8. Programming
Hi,
I working a c project in IBM AIX. I have a requirement like this.
I have some contents in *temp. I am writing the contents of *temp to a file pointer ftemp (*ftemp for an tmp file tmpfile.txt)
Now I want to read the contents of *ftemp in the reverse order an dneed to print it in the... (2 Replies)
Discussion started by: ramkrix
2 Replies
9. Programming
In determining the true file size of a .tga file is the
fseek(fptr,0,SEEK_END);
file_size = ftell(fptr);
combination reliable ? The reason Im asking is because the value of file_size is in agreement with doing a
wc -c mytga.tga
however when I get the value of the extension... (2 Replies)
Discussion started by: JamesGoh
2 Replies