What sets the ADMINDIR variable for the first script?
If this is setup in your .profile, .kshrc or /etc/profile it won't be setup when running script via cron.
You are best to set this value at the top of the script:
Hi,
I have a menu driven script that does various tasks, I want to be able to call functions directly from within other unix scripts from my menu script. Is this possible? (12 Replies)
I have a script that calls several other scripts in a specified order:
# Loop over actions in specified order (STOP_ORDER or START_ORDER) and build and evaluate commands
for command in $(eval print '$'${action}_ORDER)
do
printf "`date`\tExecuting ${action}_${command} = `eval print... (1 Reply)
hi all,
i have a function which will take i/p as a ddl sctipt as i/p and execute it,
let
function execute_sql
{
db_var="$1"
v_cnt=`sqlplus -s XXXXX/XXXXX@aXXX << ENDSQL | sed -e "s/Connected\.//" -e "/^$/d"
set pagesize 0 feedback off verify off heading off echo off serveroutput on size... (4 Replies)
I have the following cron job in the crontab.
#! /bin/bash
25 15 * * 1-5 /export/home/svittala/scripts/scpt1.sh >/dev/null 2>&1.
The problem that I am facing is - the scpt1.sh can be executed manually. But, it is not executing through CRON. Not sure what's the issue. Any hints?. Thanks.... (5 Replies)
Hi
I am getting some errors when i am running the shell script using the following syntax:
>abc.sh
but the same script works fine with the following syntax:
>sh abc.sh
wats the difference in both....please help
thanks in advance. (6 Replies)
What is the difference between calling the sub scripts of below two line.
/home/scripts/devdb.sh
. /home/scripts/devdb.sh
sh /home/scripts/devdb.sh
We are using the suse 2.0 version (4 Replies)
I have created a script to call 2-3 shell scripts to be execute in succession, however, it seems that after the first shell script completes, the entire script exits out.
Example:
1stJob.sh
2ndJob.sh
1st Job - FTP files from Mainframe to Unix using the following commands at the tail of... (1 Reply)
Hi,
I have written a some six scripts to move large files and re-size them. This has been done step by step, taking backup, creating the new files, merging the files, removing the temporary files created.
Since these files are around 500 MB, each step takes somewhere between 1 to 5 mins.
... (1 Reply)
I need to call 3 different shell scripts from 2 different scripts, one is a perl script and other is Shell script.
In Case -1 :
The perl script is myperlscript.pl
and the name of three shell scripts which need to be called from the perl script are a1.sh, a2.sh and a3.sh. Each shell script... (1 Reply)
Dear all,
I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.
Here is the snippet:-
#!/bin/bash
HSFILE=/root/Test/Components.txt
LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies
LEARN ABOUT CENTOS
setup-nsssysinit
SETUP-NSSSYSINIT(1) Network Security Services SETUP-NSSSYSINIT(1)NAME
setup-nsssysinit - Query or enable the nss-sysinit module
SYNOPSIS
setup-nsssysinit [on] [off] [status]
DESCRIPTION
setup-nsssysinit is a shell script to query the status of the nss-sysinit module and when run with root priviledge it can enable or disable
it.
Turns on or off the nss-sysinit module db by editing the global PKCS #11 configuration file. Displays the status. This script can be
invoked by the user as super user. It is invoked at nss-sysinit post install time with argument on.
OPTIONS
on
Turn on nss-sysinit.
off
Turn on nss-sysinit.
status
returns whether nss-syinit is enabled or not.
EXAMPLES
The following example will query for the status of nss-sysinit:
/usr/bin/setup-nsssysinit status
The following example, when run as superuser, will turn on nss-sysinit:
/usr/bin/setup-nsssysinit on
FILES
/usr/bin/setup-nsssysinit
SEE ALSO pkg-config(1)AUTHORS
The nss libraries were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google.
Authors: Elio Maldonado <emaldona@redhat.com>.
LICENSE
Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at
http://mozilla.org/MPL/2.0/.
nss 3.15.4 17 June 2014 SETUP-NSSSYSINIT(1)