10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello All,
I have a scenario where I need suggestion
I am creating a file watcher job on autosys and and command job to do a SCP a file from one server to another. My file watcher will get success once the file get receive. The file I am receiving a zip file. THe command job which I am... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies
2. UNIX for Dummies Questions & Answers
Hi Folks,
While transferring file from FTP software like Filezilla the files gets corrupted.
Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies
3. Shell Programming and Scripting
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
4. Shell Programming and Scripting
Hi,
I've the following code to log the errors any after the command is executed.
# Ksh 88 Version
log_path=/home/etc/fls/fls_log.log
del_path=/home/etc/fls/to_day
rm $del_path/* >> $log_path 2>&1
But I even want to log if the rm command is success without any error along with... (1 Reply)
Discussion started by: smile689
1 Replies
5. Shell Programming and Scripting
Hi,
I am using ndmcli to send files from one solaris server to another one.
I use the below one in script and verify the status.
select stat det=yes pnum="$PNUM"
Is there any option to automate in script in verifying destination size with source after doing NDM? :mad: (10 Replies)
Discussion started by: gthangav
10 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have try to ndm to one server to another server. but i am getting this error. what is this error? are files not in source folder?
Source file open failed. Error= 2
Regards,
Balamurgan (1 Reply)
Discussion started by: krbala1985
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
I have configured NDM (Connect: Direct) to copy a bunch of files from one server to another. I create a master file contains the list of files which need to copied, and my shell script read the file and send the file one by one thru NDM. The problem is, since the files are very big in size... (0 Replies)
Discussion started by: r_sethu
0 Replies
8. Shell Programming and Scripting
..................................
Network data mover is a secure mechanism to transfer data .
can any body guide me out ....
how it is done (1 Reply)
Discussion started by: anumkoshy
1 Replies
9. Shell Programming and Scripting
I want to put a exit if there is no file found.
In the directory I can have multiple txt files with EPISGCHGS as prefix or maynot have one.
When I am trying the following it is erroring if there is no text file with the EPISGCHGS as prefix.
for file in EPISGCHGS*.txt
do
cat $file >... (2 Replies)
Discussion started by: apps_user
2 Replies
10. UNIX for Dummies Questions & Answers
What is the command, which takes cursor to the end of file which is opened within vi editor? (4 Replies)
Discussion started by: videsh77
4 Replies
KEYCTL_SET_REQKEY_KEYRING(3) Linux Key Management Calls KEYCTL_SET_REQKEY_KEYRING(3)
NAME
keyctl_set_reqkey_keyring - Set the implicit destination keyring
SYNOPSIS
#include <keyutils.h>
long keyctl_set_reqkey_keyring(int reqkey_defl);
DESCRIPTION
keyctl_set_reqkey_keyring() sets the default destination for implicit key requests for the current thread and returns the old setting.
After this operation has been issued, keys acquired by implicit key requests, such as might be performed by open() on an AFS or NFS
filesystem, will be linked by default to the specified keyring by this function.
The valid values of reqkey_defl are:
KEY_REQKEY_DEFL_NO_CHANGE
This makes no change to the current setting.
KEY_REQKEY_DEFL_THREAD_KEYRING
This makes the thread-specific keyring the default destination.
KEY_REQKEY_DEFL_PROCESS_KEYRING
This makes the process-specific keyring the default destination.
KEY_REQKEY_DEFL_SESSION_KEYRING
This makes the session keyring the default destination.
KEY_REQKEY_DEFL_USER_KEYRING
This makes the UID-specific keyring the default destination.
KEY_REQKEY_DEFL_USER_SESSION_KEYRING
This makes the UID-specific session keyring the default destination.
KEY_REQKEY_DEFL_DEFAULT
This selects the default behaviour which is to use the thread-specific keyring if there is one, otherwise the process-specific
keyring if there is one, otherwise the session keyring if there is one, otherwise the UID-specific session keyring.
This setting is inherited across fork() and exec().
RETURN VALUE
On success keyctl_set_reqkey_keyring() returns 0. On error, the value -1 will be returned and errno will have been set to an appropriate
error.
ERRORS
EINVAL The value of reqkey_defl is invalid.
LINKING
This is a library function that can be found in libkeyutils. When linking, -lkeyutils should be specified to the linker.
SEE ALSO
keyctl(1),
add_key(2),
keyctl(2),
request_key(2),
keyctl(3),
request-key(8)
Linux 4 May 2006 KEYCTL_SET_REQKEY_KEYRING(3)