I am Not sure why following script is not capturing the counts only when using crontab !! when I run it fromt he command line it is fine ! what is missing here !
Here is my crontab looks like:
---------- Post updated at 07:11 PM ---------- Previous update was at 06:25 PM ----------
Just figured it out. I just needed to add this line to my script:
crontab just does not have a way to know where my sqlplus is located. It worked when I added that line and it worked.
Last edited by rbatte1; 12-18-2015 at 09:59 AM..
Reason: Added CODE tags
Hi there, this is part of my script:
/usr/bin/cd /u01/oradata
/usr/bin/cp `/bin/ls -1 . |grep -v "^DIMStemp01.dbf$" | grep -v "^DIMSts01.dbf$"|grep -v "^DIMStects01.dbf$"` /backup
It's working fine when I manually run on telnet session.
/bin/ls -1 . -- to list all the files inside... (2 Replies)
hi i have a script called test.sh. the content is ls >> crontest.txt.
if i run manually it's giving output.but if i scheduled in crontab it's not giving output.
crontab entry:
02 * * * * /sms5/SMSHOME/eds_sh/test.sh >> /sms5/SMSHOME/eds_sh/testfile/logfile 2>&1
I am using ksh.is there... (2 Replies)
I have the following expect script sitting on a Linux box.
===
#!/usr/bin/expect -f
#
# backup.expect
#
# Expect script to backup a firewall via a SSH session
#
#
set firewall
set username
set password
set prompt
set filename
match_max 50000
spawn ssh -l... (2 Replies)
I have made a shell script(/bin/sh) that starts a perl script (that I haven't made my self) that's starts a ssh session. The ssh session uses a private/public key to login so no password is needed. The Perl script works perfect.
But when I put it in a cronjob (crontab) the ssh connection asks... (6 Replies)
Hi
I have created a script. Which i have configured in cron to make it run in every 2 min. But script is not running. If I checl the cron log at /var/cron/log .it shows its running in every 2 min. Below is the command which i configured in crontab.
But I am not able to find the way so that... (9 Replies)
Hi
Iam running below script in crontab but its not working.
#!/bin/sh
cd /Scripts
/usr/local/bin/expect -f /Scripts/bng_backup.exp /Scripts/data.txt
tar -cf bngbackup.tar bngbackup ;gzip bngbackup.tar
when iam running manually the output file is generating..but bngbackup.tar.gz file... (5 Replies)
This is the crontab it is supossed to be running everyday but it didnt
5 0 * * * /export/app/CO/opge/scr/Informe_parametros_colombia.ksh >/dev/null 2>&1
Inside the above script connects to a database and extract data to a flat file, manually i run the script at about 2 a.m. and Works OK,... (6 Replies)
Hi all,
I'm working to a script with /bin/bash shebang.
The script works perfectly if I run from command line.
The script runs under a non root user and inside the commands are set with sudo command in a such a way they can be run under root, for example (first rows of the script):... (5 Replies)
Hi,
I have written one script which is connecting to the the database and generating one CSV, it is running fine when i ran it manually though it is throwing any warning but CSV is generating and working fine but same script when i have configured in crontab not working and giving error, kindly... (6 Replies)
Hi,
I have written one script which is connecting to the the database and generating one CSV, it is running fine when i ran it manually though it is throwing any warning but CSV is generating and working fine but same script when i have configured in crontab not working and giving error, kindly... (1 Reply)
Discussion started by: ash1234
1 Replies
LEARN ABOUT DEBIAN
pgpgpg
PGP(1) General Commands Manual PGP(1)NAME
pgpgpg - wrapper around Gnu Privacy Guard that takes Pretty Good Privacy command line options
SYNOPSIS
pgpgpg [options] pgpfile
pgpgpg -e [options] file user ...
DESCRIPTION
PGPGPG is a wrapper that allows calls to GnuPG (Gnu Privacy Guard) using the command line options of (Pretty Good Privacy). PGP and GnuPG
are encryption programms with high security encryption engines. However, PGP is available without a fee but is not realy free software.
GnuPG on the other hand is realy free software and has additionally features but with a different command line syntax than PGP.
The goal of pgpgpg is to plug in a command line syntax in front of GnuPG equal to PGP 2.6.
OPTIONS
The following options are supported by pgpgpg notice that long options do not use the usual GNU syntax (--) but, instead are of the form
+option[=value].
-e Encrypt a plaintext file.
-d, -p Decrypt a plaintext file.
-s Sign a plaintext file.
pgpgpg -s file [-u userid]
-sb Create a separate signature certificate (a .sig file) for a given file.
pgpgpg -sb file [-u userid]
-c Use convential cryptography when encrypting.
-o Output to the file specified. Should only be used for encryption, decryption and signature operations (not for key management).
-a, +armor
ASCII armor the output file.
-u, +myname
Select the userid to use for some operations.
-kg Generate a unique public/secret pair.
-ka Add a public or secret key to your key ring.
pgpgpg -ka keyfile [keyring]
-kx Extract a copy from your public or secret keyring.
pgpgpg -kx[a] userid keyfile [keyring]
-kv View the contents of your keyring.
pgpgpg -kv[v] [userid] [keyring]
-kvc View a key fingerprint.
pgpgpg -kvc [userid] [keyring]
-kr Remove a key from your keyring.
pgpgpg -kr userid [keyring]
-kd If acting on your secret key, permanently revoke a key and issue a compromise certificate. If acting on a public key, disable or
reenable a key.
pgpgpg -kd userid
-ke Edit trust parameters for a public key or edit the pass phrase or add a userid to a secret key.
pgpgpg -ke userid [keyring]
-kc View the contents and check the certifying signatures of your public key ring.
pgpgpg -kc [userid] [keyring]
-ks Sign and certify someone's public key.
pgpgpg -ks userid [-u userid] [keyring]
The following options are ignored or unsupported: ++armorlines, +autosign, +bakring, +interactive, +keepbinary, +language, +legal_kludge,
+nomanual, +pager, +randseed, +tmp and +tzfix.
BUGS
PGPGPG does not currently provide an online help (-h or -?) and will not show a summary of commands, as PGP does, when typing:
pgp -k
The following options are not documented (yet): +batchmode, +cert_depth, +charset, +encrypttoself, +force, +clearsig, +comment, +com-
pletes_needed, +compress, +marginals_needed, +pubring, +secring, +textmode and +verbose.
AUTHORS
PGP was originally written by Philip R. Zimmermann. PGPGPG was written by Michael Roth.
This manpage was written by Javier Fernandez-Sanguino for the Debian distribution (but may be used by others) by glancing at PGP's manpage
and the source code from PGPGPG (pgpopts.c)
PGPGPG Version 0.13 PGP(1)