I am writing an installation script on AIX. This involves typical checks of some pre requisites like java, oracle, some version checks, disk space etc. It is a long script. I am facing a strange problem. There are a no of functions used in the script. What I see is that the installer complains of... (1 Reply)
Hi I have to move data to a file based on the valuies of first three characters in a file I am using the following script
FIN=$LOC/TEST.TXT
FEEDFILE=$LOC/TUE_GROSSJE.TXT
#Read the file
while read FDROW
do
FEEDROW=$FDROW;
DTYPE=`echo $FEEDROW |cut -c 1-3`
if ; then
$FEEDROW... (4 Replies)
Hi
I had written the small script for calling a function.
bash-2.03$ more file2
function sai
{
echo " this is an example"
}
echo "This is main program"
echo "calling the function"
sai()
when executing the above script. I am getting error.
bash-2.03$ sh file2
file2: function:... (2 Replies)
Hi all ,
I am getting an error "job_procfile not found" while excecuting a .ksh script. The script is used to create control-m ( scheduler ) jobs dynamically by reading parameter files ( flat filescomma seperated )
job_procfile is a function within the .ksh script
The script is something... (8 Replies)
shell script in very simple,
#!/bin/sh
function msgs
{
echo 'this'
}
msgs
It works on linux, apple, but can not run on solaris. On solaris, when I enter "./t.sh", it gave me following error,
./t.sh: function: not found
this
./t.sh: msgs: not found
What's wrong with... (3 Replies)
I have shell script as below:
#!/bin/ksh
#set -xv
function set_variable
{
VARIABLE_NAME=$1
CURRENT_PATH=`pwd`
if ; then
echo "\nconfiguration_file.lst file not found in $CURRENT_PATH/common/common_scripts"
exit 1;
fi
VARIABLE_COUNT=`cat... (2 Replies)
I am creating a script to run the SysInfo tool under HPUX servers, this is my script!
#!/usr/bin/ksh
#
# Date: February 29th 2011
#
#Definicion de variables
PATH_TMP=/home/eponcede
> HPUX_SysInfo.log
for host in `cat $PATH_TMP/servers/host_hp2_test`
do
echo... (2 Replies)
Hello everyone,
I am having problems figuring this out.
This script below is supposed to create a list of file names with their "md5sum", in a file "lib-list.txt"
When I run it "sh component-list.sh " I get this:component-list.sh: 4: component-list.sh: function: not found
component-list.sh:... (4 Replies)
In the bash below, if the answer is "y" then goto function remove. If the answer is "n" then goto the id variable line (where the date is inputted). However, I am getting command remove not found, but remove is a function not an command. I must have the syntax incorrect? Thank you :).
... (3 Replies)
In the bash below I am searching the filevirus-scan.log for the Infected files: 0 line (in bold) and each line for OK.
If both of these are true then the function execute is automatically called and processing starts. If both these conditions are not meet then the line in the
file is sent to the... (2 Replies)