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)
Hi,
i am getting following syntax error ...kingly advice why is it coming ??
#!/bin/bash
find . -name "common.log"
if ; then
echo "1"
fi
Himnashu@home /bin
$ ./a.sh
./a.sh: line 7: syntax error near unexpected token `fi'
./a.sh: line 7: `fi' (9 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)
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 SUSE
crm_attribute
CRM_ATTRIBUTE(8) [FIXME: manual] CRM_ATTRIBUTE(8)NAME
crm_attribute - manipulate attributes in the CIB
SYNOPSIS
crm_attribute [options]
DESCRIPTION
The crm_attribute command queries and manipulates node attributes and cluster configuration options that are used in the CIB.
OPTIONS --help, -?
Print a help message.
--verbose, -V
Turn on debug information.
Note
Increase the level of verbosity by providing additional instances.
--quiet, -Q
When doing an attribute query using -G, print just the value to stdout. Use this option with -G.
--get-value, -G
Retrieve rather than set the preference.
--delete-attr, -D
Delete rather than set the attribute.
--attr-value string, -v string
Value to set. This is ignored when used with -G.
--node-uuid node_uuid, -u node_uuid
Specify the UUID of the node to change.
--node-uname node_uname, -U node_uname
Specify the uname of the node to change.
--set-name string, -s string
Specify the set of attributes in which to read or write the attribute.
--attr-name string, -n string
Specify the attribute to set or query.
--type string, -t type
Determine to which section of the CIB the attribute should be set or to which section of the CIB the attribute that is queried belongs
Possible values are nodes, status, or crm_config.
Additional Options:
+-----------+--------------------+
|Type | Additional Options |
+-----------+--------------------+
|nodes | -(U|u) -n [-s] |
+-----------+--------------------+
|status | -(U|u) -n [-s] |
+-----------+--------------------+
|crm_config | -n [-s] |
+-----------+--------------------+
EXAMPLES
Query the value of the location attribute in the nodes section for the host myhost in the CIB:
crm_attribute -G -t nodes -U myhost -n location
Query the value of the cluster-delay attribute in the crm_config section in the CIB:
crm_attribute -G -t crm_config -n cluster-delay
Query the value of the cluster-delay attribute in the crm_config section in the CIB. Print just the value:
crm_attribute -G -Q -t crm_config -n cluster-delay
Delete the location attribute for the host myhost from the nodes section of the CIB:
crm_attribute -D -t nodes -U myhost -n location
Add a new attribute called location with the value of office to the set subsection of the nodes section in the CIB (settings applied to the
host myhost):
crm_attribute -t nodes -U myhost -s set -n location -v office
Change the value of the location attribute in the nodes section for the myhost host:
crm_attribute -t nodes -U myhost -n location -v backoffice
FILES
/var/lib/heartbeat/crm/cib.xml--the CIB (minus status section) on disk. Editing this file directly is strongly discouraged.
SEE ALSO
???
AUTHOR
crm_attribute was written by Andrew Beekhof.
[FIXME: source] 07/05/2010 CRM_ATTRIBUTE(8)