10 More Discussions You Might Find Interesting
1. SCO
Hi to all, I hope that you can help me with this...
SCO Unix 5.0.5, old mashine Pentium III x86, SCSI HDD 36.4 Gb
PANIC: exit – Cannot exec /etc/init (PID 1), status 0x00000200
Cannot dump 49055 pages to dumpdev hd (1/41) : space for only 48640 pages
Dump not completed
Safe to Power Off... (1 Reply)
Discussion started by: lakicevic
1 Replies
2. Shell Programming and Scripting
I have the following bash script lines in a file named test.sh.
#!/bin/bash
#
# Write Date to cron.log
#
echo "Begin SSI Load $(date +%d%b%y_%T)"
#
# Get the latest rates file for processing.
#
d=$(ls -tr /rms/data/ssi | grep -v "processed" | tail -n 1)
filename=$d
export filename... (3 Replies)
Discussion started by: ginowms
3 Replies
3. Shell Programming and Scripting
Greetings,
Everytime I use rm with find I get errors like find: ./test: No such file or directory
For exemple :
hostname> mkdir test
hostname> ls
test
hostname> find . -type d -name test -exec rm -rf {} \;
find: ./test: No such file or directory
hostname>ls
hostname> echo $?
1
... (2 Replies)
Discussion started by: Sekullos
2 Replies
4. Shell Programming and Scripting
how do i get the exit status from a ksh or perl script executed in a java program using Runtime? (1 Reply)
Discussion started by: twk
1 Replies
5. Shell Programming and Scripting
Hi, Gurus,
my script code as following:
#!/usr/bin/sh
mkdir dir1
result=`echo $?`
if ; then
echo "completed"
else
echo "wrong"
fi
When I execute it with command sh filename. , it executed successfully.
but, when I execute it with command . filename it throw out error:
-bash:ELF :... (2 Replies)
Discussion started by: ken002
2 Replies
6. SCO
hi all
when ever i power on my sco server it give me the message:PANIC: exit - cannot exec /etc/init (PID 1), status 0*00000200. its not booting. any help?? (1 Reply)
Discussion started by: Danish
1 Replies
7. Shell Programming and Scripting
Hi,
In my script i need to output the STDOUT and STDERR messages to a log file.
my code is as below.
------------------------------------------------------------------------
LogDate=`date "+%Y%m%d"`
LogDirectory=`grep -w LogDirectory ${ParameterFile}|cut -d "=" -f2`... (1 Reply)
Discussion started by: Raamc
1 Replies
8. Shell Programming and Scripting
I am using ksh88 and I am trying to catch the return status of opening a file using a file descriptor and the exec and eval commands. However I am not having much success. Here is what I have:
eval "exec $next_fh>$1"
This opens the file if the file is $1 is valid, however I want to make... (1 Reply)
Discussion started by: robotball
1 Replies
9. Red Hat
I have successfully installed RedHat 8.0 onto a Dell PowerEdge SC1425 today. This server has two SATA hard drives, and an IDE DVD-ROM drive.
Using the following kernel parameters, i successfully installed across both hard drives from CD:
ide0=0x1f0,0x3f6,14 vga=791 resolution=1024x768 expert... (5 Replies)
Discussion started by: fishsponge
5 Replies
10. Shell Programming and Scripting
I am trying to perform some error handing within a Korn sheel script whilst FTPing a file from one server to another..
The exit status is correctly set to zero, if my script connects to the other server and sends the file..
However, if for whatever reason other than a timeout the script... (3 Replies)
Discussion started by: frustrated1
3 Replies
PAM_EXEC(8) BSD System Manager's Manual PAM_EXEC(8)
NAME
pam_exec -- Exec PAM module
SYNOPSIS
[service-name] module-type control-flag pam_exec [arguments]
DESCRIPTION
The exec service module for PAM executes the program designated by its first argument if no options are specified, with its remaining argu-
ments as command-line arguments. If options are specified, the program and its arguments follow the last option or -- if the program name
conflicts with an option name.
The following options may be passed before the program and its arguments:
return_prog_exit_status Use the program exit status as the return code of the pam_sm_* function. It must be a valid return value for this
function.
-- Stop options parsing; program and its arguments follow.
The child's environment is set to the current PAM environment list, as returned by pam_getenvlist(3). In addition, the following PAM items
are exported as environment variables: PAM_RHOST, PAM_RUSER, PAM_SERVICE, PAM_SM_FUNC, PAM_TTY and PAM_USER.
The PAM_SM_FUNC variable contains the name of the PAM service module function being called. It may be:
- pam_sm_acct_mgmt
- pam_sm_authenticate
- pam_sm_chauthtok
- pam_sm_close_session
- pam_sm_open_session
- pam_sm_setcred
If return_prog_exit_status is not set (default), the PAM_SM_FUNC function returns PAM_SUCCESS if the program exit status is 0,
PAM_PERM_DENIED otherwise.
If return_prog_exit_status is set, the program exit status is used. It should be PAM_SUCCESS or one of the error codes allowed by the call-
ing PAM_SM_FUNC function. The valid codes are documented in each function man page. If the exit status is not a valid return code,
PAM_SERVICE_ERR is returned. Each valid codes numerical value is available as an environment variable (eg. PAM_SUCESS, PAM_USER_UNKNOWN,
etc). This is useful in shell scripts for instance.
SEE ALSO
pam_get_item(3), pam.conf(5), pam(8), pam_sm_acct_mgmt(8), pam_sm_authenticate(8), pam_sm_chauthtok(8), pam_sm_close_session(8),
pam_sm_open_session(8), pam_sm_setcred(8)
AUTHORS
The pam_exec module and this manual page were developed for the FreeBSD Project by ThinkSec AS and NAI Labs, the Security Research Division
of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program.
BSD
February 8, 2012 BSD