Ok, i've been messing around in debian the past few days, setting up programs like subversion, mysql and logrotate. The purpose of this script is to use subversion to backup the binary logs. It runs in the cron every 2 hours or so (although I can't get my script to run properly atm, which is why... (1 Reply)
my expect script fails when it tries to send a password that I have that uses {}'s. Hoping I can correct that. It doesn't complain about the %, #, *, /, ? or ~ characters only the {}'s.
#!/usr/bin/expect
spawn ssh root@ca199
expect dsa {send... (1 Reply)
Hi,
I am attempting to test the input value for an integer. And if the value is not an integer, the intent is to complain about it and exit. Only if I can get past the syntax error, life will be full.
# test input to be a number
+$'; ] && { echo "Invalid input; Enter an integer..."; exit 2; }... (7 Replies)
The below script gives error: Missing ]
#!/bin/csh
set MAX=15
set PATTERN='dtsession'
set NUM=`ps -eaf | grep -c $PATTERN`
echo "No of dtsession = "$NUM
if
then
echo 'Quota exceeded permissible limit'
echo 'sending mail...............'
mail hiten.r.chauhan@gmail.com<<EOF
... (2 Replies)
Hello,
This is a programming question as well as a suse question, so let me know if you think I should post this in programming.
I have an application that I compiled under opensuse 12.2 using g77-3.3/g++3.3. The program compiles and runs just fine. I gave the application to a colleague who... (2 Replies)
I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following:
sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm
Loaded plugins: fastestmirror
Setting up Local Package... (13 Replies)
i have modified a korn shell script to include a parameter and i coded the parameter as
pSec=$1
pLoopCnt=$2
wheni run the script it gives me an error
$ ksh sfs_pcard_load_file.ksh 30 3
ERROR: Required Parameters Missing.
USAGE: sfs_pcard_load_file.ksh
please help i think i might... (4 Replies)
Dear Friends,
Regarding Compilation error character is missing-unix shell script
I am new to unix shell script.
My requirement is --I need to find out 3 files in my UBM unix directory,if any one(CMUSER) file is available means,then i need to exit from my unix script,
Below is my unix... (2 Replies)
I am trying to execute the cli.sh script in another shell script passing arguments and getting the below error.
Myscript.sh
#!/bin/sh
/home/runAJobCli/cli.sh runAJobCli -n $Taskname -t $Tasktype
I am passing the below 2 arguments and it giving error
./Myscript.sh T_SAMPLE_TEST MTT... (11 Replies)
I have no idea how to write ksh script, but i'm really in need of help with this. I using fedora 30 and in attempt of runnig attached script i getting those errors, i solved first error by removing excess bracket, but i do not know what should i do with other. Pls sorry for trash post. (8 Replies)
Discussion started by: NullPtr
8 Replies
LEARN ABOUT OPENSOLARIS
warn.conf
warn.conf(4) File Formats warn.conf(4)NAME
warn.conf - Kerberos warning configuration file
SYNOPSIS
/etc/krb5/warn.conf
DESCRIPTION
The warn.conf file contains configuration information specifying how users will be warned by the ktkt_warnd daemon about ticket expiration.
In addition, this file can be used to auto-renew the user's Ticket-Granting Ticket (TGT) instead of warning the user. Credential expiration
warnings and auto-renew results are sent, by means of syslog, to auth.notice.
Each Kerberos client host must have a warn.conf file in order for users on that host to get Kerberos warnings from the client. Entries in
the warn.conf file must have the following format:
principal [renew[:opt1,...optN]] syslog|terminal time
or:
principal [renew[:opt1,...optN]] mail time [email address]
principal Specifies the principal name to be warned. The asterisk (*) wildcard can be used to specify groups of principals.
renew Automatically renew the credentials (TGT) until renewable lifetime expires. This is equivalent to the user running kinit
-R.
The renew options include:
log-success Log the result of the renew attempt on success using the specified method (syslog|terminal|mail).
log-failure Log the result of the renew attempt on failure using the specified method (syslog|terminal|mail). Some
renew failure conditions are: TGT renewable lifetime has expired, the KDCs are unavailable, or the cred
cache file has been removed.
log Same as specifing both log-success and log-failure.
Note -
If no log options are given, no logging is done.
syslog Sends the warnings to the system's syslog. Depending on the /etc/syslog.conf file, syslog entries are written to the
/var/adm/messages file and/or displayed on the terminal.
terminal Sends the warnings to display on the terminal.
mail Sends the warnings as email to the address specified by email_address.
time Specifies how much time before the TGT expires when a warning should be sent. The default time value is seconds, but you
can specify h (hours) and m (minutes) after the number to specify other time values.
email_address Specifies the email address at which to send the warnings. This field must be specified only with the mail field.
EXAMPLES
Example 1 Specifying Warnings
The following warn.conf entry
* syslog 5m
specifies that warnings will be sent to the syslog five minutes before the expiration of the TGT for all principals. The form of the mes-
sage is:
jdb@ACME.COM: your kerberos credentials expire in 5 minutes
Example 2 Specifying Renewal
The following warn.conf entry:
* renew:log terminal 30m
...specifies that renew results will be sent to the user's terminal 30 minutes before the expiration of the TGT for all principals. The
form of the message (on renew success) is:
myname@ACME.COM: your kerberos credentials have been renewed
FILES
/usr/lib/krb5/ktkt_warnd Kerberos warning daemon
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO kinit(1), kdestroy(1), ktkt_warnd(1M), syslog.conf(4), utmpx(4), attributes(5), kerberos(5), pam_krb5(5)NOTES
The auto-renew of the TGT is attempted only if the user is logged-in, as determined by examining utmpx(4).
SunOS 5.11 30 Mar 2005 warn.conf(4)