How do I create a K Shell which would silently (without user input) logon to Oracle and
run an SQL script?
Any help will be greatly appreciated.
Steve (1 Reply)
I have a command which will run fine in a unix command prompt. Can you tell how to interprete this command inside perl script......
The command is :
perl -pe 's/(\|333\}.*)\}$/$1|1.6}/' FIA.txt
This will search for the number 333 and appends 1.6 at the end of that line....... (1 Reply)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
There's a JavaScript file that I call from command line (there's a framework) like so:
./RunDiag.js param1:'string one here' param2:'string two here'
I have a shell script where I invoke the above command. I can run it in a script as simple as this
#!/bin/bash
stuff="./RunDiag.js... (4 Replies)
I have to run some shell scripts in Windows using Cygwin. I am able to achieve that using
%BASH% --login -i "/cygdrive/d/script.sh"
, where %BASH% is an environment variable in Windows set to
C:\cygwin\bin\bash.exe.
I have a created a Cygwin environment variable $EXE_PATH =... (3 Replies)
Hi,
I would like to run following code in bash inside a zsh script. (In this case is output unfortunately very different if you run it in zsh).
I tried to put "bash" in front of the code but I obtained following error message "bash: do: No such file or directory
" eve though I merged the whole... (7 Replies)
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
I am trying to run an awk command inside of ssh and it is not working. These are AIX servers.
for i in `cat servers`; do ssh $i "/bin/hostname; df -g | awk '/dev/ && $4+0 > 70'"; done
server1
server2
server3
server4
I also tried these two methods and they did not work. It just seemed... (5 Replies)
Discussion started by: cokedude
5 Replies
LEARN ABOUT OSF1
time_lock_es
time_lock_es(3) Library Functions Manual time_lock_es(3)NAME
time_lock_es - Check time-of-day locking (Enhanced Security)
LIBRARY
Security Library (libsecurity.so)
SYNOPSIS
#include <sys/types.h> #include <sys/security.h> #include <prot.h>
int time_lock_es ( struct es_passwd *prpwd );
PARAMETERS
Specifies a protected password entry structure.
DESCRIPTION
The time_lock_es() function performs time-of-day lock checking for the current date and time against the time-of-day specification in the
fd_tod string of the prpwd parameter. The function returns 1 if the time lock is on and 0 if there is no lock.
The fd_tod specification is like that found in the UUCP Systems file. The specification is a comma-separated list of entries. If the cur-
rent time matches an entry in the specification, the time lock is not on. The entries are scanned until a match is found. If no match can
be found, the time lock is on. Each entry appears as follows:
<day><start_time-end_time>
The day is one of the following: Matches any day of the week. Matches Monday through Friday. Sunday Monday Tuesday Wednesday Thursday
Friday Saturday
The times are military time, for example, 9:15 am is 0915, 6:00 pm is 1800, and 12:42 am is 0042. When start_time is less than end_time,
the range of times contains valid times in which to log in that day. When the times are equal or there is only one time (including no time
at all), the entire day is valid. When start_time is later than end_time, times outside the range are valid. For instance, if start_time
is 04:15 and end_time is 02:00, then any time that falls outside the range of 02:00 to 04:15 is a valid time.
NOTES
Programs using this function must be compiled with -lsecurity.
In order to quickstart a program, the program must be linked as follows:
-lsecurity -ldb -laud -lm
See the shared library discussion in the Programmer's Guide for more information about using the quickstarting feature. delim off
time_lock_es(3)