06-08-2005
works just fine on Solaris 8
Make sure you have no hidden control characters anywhere in the file - in particular the first line.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
Can you please let me know how to find all lines that don't begin with pattern1, pattern2, pattern3 and pattern4?
Here is my awk script that gives an error.
awk 'BEGIN { NAME="$FILE"
GSNO=0 }
/^ISA/ { FIRST=$0;
LAST="IEA*1*" +... (4 Replies)
Discussion started by: billy5
4 Replies
2. Shell Programming and Scripting
All,
Does it matter what perl verios your running when you get syntax errors?
on version 5.6.1 the code works fine, but on 5.8.0 the code gets errors?
#!/usr/bin/perl
#use strict;
#use warnings;
my $mess = 'messages';
my $mess1 = 'messages.1';
my $mess2 = 'messages.2';
my... (13 Replies)
Discussion started by: bigben1220
13 Replies
3. Shell Programming and Scripting
Hi,
I am a newbie to PERL and working on a script. When running it I get a lot of compilation errors.
The actual command in the program (which is within a case structure) is given below
# This gives the actual count of inquires from a log file (It works fine when I type this on the... (2 Replies)
Discussion started by: nurani
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Mini:Evaluator develop$ make
bison -d grammar.y
grammar.y: conflicts: 24 shift/reduce
flex rules.l
cc -0 -o Evaluator grammar.tab.c lex.yy.c -ly -ll -lm
In file included from grammar.y:3:
/usr/include/architecture/i386/math.h:310: error: syntax error before numeric constant... (1 Reply)
Discussion started by: tcerka
1 Replies
5. Shell Programming and Scripting
this is the script:
ps -ef|grep "x_jobstat 10 v001" > jobstatv001.txt
ps -ef |grep "x_jobserver 10 v001" >> jobstatv001.txt
#Sample text - each line preceded by 4 spaces
# root 133064 102986 0 08:49:28 pts/6 0:00 grep x_jobstat 10 v001
# root 137550 1 0 Nov 08 - 0:28... (6 Replies)
Discussion started by: kwalkner
6 Replies
6. Emergency UNIX and Linux Support
I want to delete archivelog files that has been archived and applied from primary database
to standby database. This piece of script is working in Linux server. However, I copy it to
Unix server with tiny modification. It won't work and generate the error message. I have checked
code carefullt... (8 Replies)
Discussion started by: duke0001
8 Replies
7. Programming
Hi Guys,
Hope everyone is fine :)
I have this code below:
#!/usr/bin/perl
$num_of_files=`ls | grep -v remover | wc -l`;
$remover=`ls -lrt | grep -v total | grep -v remover | head -1 | awk '{print $8}' | rm \`xargs\``;
if ($num_of_files>3) {
system ($remover);
}
When I... (3 Replies)
Discussion started by: rymnd_12345
3 Replies
8. Shell Programming and Scripting
Original script written on CentOS 6.3 with GNU bash 4.1.2
Destination system is Solaris 9 with GNU bash 2.05 (not changeable by me)
I have a script written on the linux side but now we need to provide a version to another site that "doesn't like linux". I've been going through changing the ] or... (13 Replies)
Discussion started by: oly_r
13 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This script will analyse the channels.txt e registrations.txt and it will allow to mage the channels and the... (9 Replies)
Discussion started by: Demas
9 Replies
10. Shell Programming and Scripting
I believe there are couple of syntax issues in my script, couldn't find them :(
can someone help me with fixing it to make it work.
cd /abcde/
#get the latest filename excluding subdirs
filename=`ls -ltr | grep ^- | tail -1 | awk '{print $8}'`
#get system date and file timestamp and... (3 Replies)
Discussion started by: simpltyansh
3 Replies
LEARN ABOUT DEBIAN
fence_eps
FENCE_AGENT(8) System Manager's Manual FENCE_AGENT(8)
NAME
fence_eps - Fence agent for ePowerSwitch
DESCRIPTION
fence_eps is an I/O Fencing agent which can be used with the ePowerSwitch 8M+ power switch to fence connected machines. Fence agent works
ONLY on 8M+ device, because this is only one, which has support for hidden page feature.
Agent basically works by connecting to hidden page and pass appropriate arguments to GET request. This means, that hidden page feature must
be enabled and properly configured.
fence_eps accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent.
fence_eps can be run by itself with command line options. This is useful for testing and for turning outlets on or off from scripts.
Vendor URL: http://www.epowerswitch.com
PARAMETERS
-o, --action=<action>
Fencing Action (Default Value: reboot)
-a, --ip=<ip>
IP Address or Hostname This parameter is always required.
-l, --username=<name>
Login Name
-p, --password=<password>
Login password or passphrase
-S, --password-script=<script>
Script to retrieve password
-n, --plug=<id>
Physical plug number or name of virtual machine This parameter is always required.
-c, --page=<page>
Name of hidden page (Default Value: hidden.htm)
-v, --verbose
Verbose mode
-D, --debug-file=<debugfile>
Write debug information to given file
-V, --version
Display version information and exit
-h, --help
Display help and exit
-C, --separator=<char>
Separator for CSV created by operation list (Default Value: ,)
--delay
Wait X seconds before fencing is started (Default Value: 0)
--retry-on
Count of attempts to retry power on (Default Value: 1)
ACTIONS
on Power on machine.
off Power off machine.
reboot Reboot machine.
status This returns the status of the plug/virtual machine.
list List available plugs with aliases/virtual machines if there is support for more then one device. Returns N/A otherwise.
monitor
Check if fencing device is running. List available plugs/virtual machines or get status of machine (if it does not support more).
metadata
The operational behavior of this is not known.
STDIN PARAMETERS
action Fencing Action (Default Value: reboot)
ipaddr IP Address or Hostname This parameter is always required.
login Login Name
passwd Login password or passphrase
passwd_script
Script to retrieve password
port Physical plug number or name of virtual machine This parameter is always required.
hidden_page
Name of hidden page (Default Value: hidden.htm)
verbose
Verbose mode
debug Write debug information to given file
version
Display version information and exit
help Display help and exit
separator
Separator for CSV created by operation list (Default Value: ,)
delay Wait X seconds before fencing is started (Default Value: 0)
retry_on
Count of attempts to retry power on (Default Value: 1)
fence_eps (Fence Agent) 2009-10-20 FENCE_AGENT(8)