Hello all,
I want to create a script that polls every hour a directory for the existence of a file. The file I look for is a `token` dropped by an external process at the completion of a successful FTP process. I wrote this script `checkfile.ksh`:
#!/usr/bin/ksh
if ] then
mailx... (5 Replies)
Guys ,
This is an output of my script errored out for "Syntax error near unexpected token `(' " Can someone tell me whats wrong with my script.
Below is my original script pasted.
#!/bin/bash
Script Creation Date 01/21/2010
Author baraghun
... (7 Replies)
Hi,
I am running the following script through cygwin and getting below mentioned error.
*******************************************
#!/bin/sh
# constants
WORK_DIR="deploy"
INFOFILE="deploy.info"
INTROFILE="Intro.sh"
CMGMT_PKG="com.kintana.cmgmt.deploy"
DEPLOY_PREFIX="mitg"
... (2 Replies)
Hi all,
Am very new to Unix and am currently Involved in Migrating some Shell Scripts from AIX 4 to Solaris 10.
While using teh for loop am getting the below error:
$ echo $SHELL
/usr/bin/ksh
$ for file in $(ls *SEBE*)
syntax error: `$' unexpected
while the same works without issue on... (4 Replies)
I'm going mad not being able to get this to work. im assuming its only a simple mistake but its driving me bonkers trying to find it.
Please if you can help me it would save me pulling my hair out!!
Thanks
#!/bin/bash -xv
#
#Config
name="TEST Server"
+ name='TEST Server'... (6 Replies)
Hi,
I am trying to read the session log through script. But it keeps showing me some error near. I have tried everything. Even tried converting the script using sed command to remove the hidden characters(\r).But nothing seems to be working.Below is the script :
#!/bin/bash
cd... (6 Replies)
unzip file.zip
if ] ; then
echo "Success"
else
echo "Some failure."
fi ;
I tried many time to detect the unzip error, but it keep show the syntax error wherever how I change the syntac. Hope someone can help me fix the issue, thanks.
Please use code tags next time for your code and... (5 Replies)
I have written this in my script but while running i am getting syntax error `(' unexpected.
unload to "$BACKUP_DIR/n_fac_fid-$clliname" select * from n_fac_fid where fac_accesskey in (select fac_accesskey From n_fac_ap_fid where ap_clli="$clliname");
Any help appreciated. (3 Replies)
Dears,
While executing the below script im getting the error at line 30. Please let me know what changes to be done to fix this.
test.sh: line 30: syntax error near unexpected token `done'
test.sh: line 30: ` done '
#!/bin/sh
# Rev. PA1
# author: eillops
# date: 26-04-2018
#
#... (1 Reply)
I am getting this error Syntax error: `]' unexpected. Did I do something wrong with elif? Does ksh not like double brackets?
if ]; then
#echo hi
source ~/.bashrc;
elif ]; then
#echo hi
source ~/.kshrc;
fi (5 Replies)
Discussion started by: cokedude
5 Replies
LEARN ABOUT CENTOS
ksvalidator
KSVALIDATOR(1) General Commands Manual KSVALIDATOR(1)NAME
ksvalidator -- verify the syntax of a kickstart file
SYNOPSIS
ksvalidator [-e | --firsterror] [-i | --followincludes] [-l | --listversions] [-v | --version VERSION] INFILE
DESCRIPTION
ksvalidator is a program that takes an input kickstart file and attempts to verify that it is syntactically correct. This includes check-
ing basics like proper quoting and making sure required options have values, and more advanced checks like verifying the file does not
include deprecated or removed kickstart commands. Mutually exclusive options can also be caught, as can certain classes of partitioning
errors (like using the same device name multiple times).
ksvalidator does have its limitations. It cannot run validate the syntax of %pre and %post scripts, nor does it attempt to run them. It
cannot check that the %packages section is valid. Most importantly, it cannot guarantee that an input kickstart file will install prop-
erly, because it does not understand the complexities of partitioning and what potentially already exists on disk.
EXIT STATUS
ksvalidator returns 0 on success, and 1 if INFILE does not exist or there is an error parsing the kickstart file.
OPTIONS -e, --firsterror
Stop on the first warning or error. By default, ksvalidator will attempt to process the entire file, potentially raising multi-
ple errors.
-i, --followincludes
Process included files in the input file when they are seen, like anaconda would. If the included file does not exist (this can
happen for a variety of reasons, but the most common being a %pre script that generates an included file) and this option is
given, an error will be generated and processing halted.
-l, --listversions
List all versions of kickstart syntax supported by ksvalidator. This is useful for determining what values can be fed back in on
a second run.
-v, --version VERSION
Use this version of kickstart syntax when processing the file, or the latest if no version is given.
SEE ALSO
ksflatten (1), ksverdiff (1)
KSVALIDATOR(1)