i managed to write a perl script for nagios. now, the script works. but i think there's somethign wrong with the exit codes. because the script doesn't show the output of the results in nagios, it instead shows null.
perl regexp error , I cant understand what is wrong
Hello all
I have simple perl regexp that is searching for pattern in string and replace it with the same string + addition string
here is what I have :
my $rec = q| new Array("Attributes Management" ... (4 Replies)
I am trying to create a script but it is giving me errors on Cygwin for the following script. Could someone tell me, what am I doing wrong?
choice=1000
echo "choice is $choice"
while ; do
echo "choice is $choice"
echo 'Please select your option:'
echo '1. Option 1'
echo '2. Option 2'... (3 Replies)
Hi,
I have this example script which gives error ": unexpected operator/operand". I need the '' brackets for operator precedence.
#!/bin/ksh
x="abc"
y="xyz"
z="123"
if -a
then
print "yes"
else
print "no"
fi
Thanks (2 Replies)
#!/usr/local/bin/perl
open (MYFILE, 'logs_report');
while (<MYFILE>) {
$rec=$_;
chomp ($rec);
@arr=split(/ /,$rec);
print $rec,"\n" if ($arr!~/OK/);
open (MYF, '>data.txt');
print $rec,"\n" if ($arr!~/OK/);
close (MYF); (14 Replies)
Hi,
Here is my piece of code--
#!/usr/bin/perl
my $Time_Stamp ;
my $User_Name;
my $Success;
my $Failure;
my $ErrorCode;
my $ErrorMsg;
my $logDir = $ARGV;
my $logPrefix = $ARGV;
die "usage: $0 <logDir> <logPrefix>" unless $logDir and $logPrefix;
die "Log dir $logDir doesn't... (2 Replies)
Good morning! Im trying to write and learn at the same time a simple script. fTHe script should tell me if a number is odd or even/
#!/usr/bin/perl
$num = 10;
$string1 = "This number is odd";
$string2 = "This number is even";
if ($num /= 2) {
print "$string1\n";
}else{
... (3 Replies)
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Hi!
I have a directory full of .plist type files from which I need to delete a line. Not every file contains the line, but of course I'd like to do it recursively. The line which I want to delete is:
<string>com.apple.PhotoBooth</string>
and looks like this in its native habitat:
... (9 Replies)
i have perl script that used to be working great , once i edit it in windows
and convert it to UTF-8 and then via FTP return it .
also did:
chmod +x foo.pl
and then when i try to run it :
./foo.pl
im getting this error:
./foo.pl: Exec format error. Wrong Architecture.... (4 Replies)
Discussion started by: umen
4 Replies
LEARN ABOUT DEBIAN
luckybackup
LUCKYBACKUP(8) System Manager's Manual LUCKYBACKUP(8)NAME
luckybackup - a powerful, fast and reliable backup & sync tool
SYNOPSIS
luckybackup [OPTIONS]... [FILE]...
DESCRIPTION
luckybackup is an application that backs-up and/or synchronizes any directories with the power of rsync
OPTIONS --help
displays this help message
--version
displays the current version of the application
--skip-critical
does not execute tasks that appear with a 'CRITICAL' warning message
--dry-run
executes luckybackup in dry-run (simulation) mode
--silent
executes luckybackup in silent mode (just tray notification icon shown)
-c
console mode. Use this, if there is no graphical envrironment available
--no-questions
skips confirmation questions asked to user. Implies -c (console mode)
[FILE]
is the filename of the already created profile that is going to be executed
examples
1. Execute luckybackup gui :
$ luckybackup
2. Execute luckybackup in silent mode for profile '~/.luckyBackup/profiles/BackupHome.profile' :
$ luckybackup --silent ~/.luckyBackup/profiles/BackupHome.profile
3. Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile' :
$ luckybackup -c BackupHome.profile
4. Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile'
Do not ask any questions and skip all operations that appear CRITICAL after the checks :
$ luckybackup --skip-critical --no-questions ~/.luckyBackup/profiles/BackupHome.profile
SEE ALSO
For a complete documentation, please have a look at the application manual via the gui main window help menu.
AUTHOR
luckybackup was written by <Loukas Avgeriou>.
This manual page was written by luckyb <luckyb69@sourceforge.net>, for the Debian project (but may be used by others).
2011-01-12 LUCKYBACKUP(8)