12-02-2009
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Anyone know which configuration file stores the users who are not permitted to use the at command? (2 Replies)
Discussion started by: Relykk
2 Replies
2. Shell Programming and Scripting
Hi folks,
I have the following configuration file,which contains list of directories:
/tmp> cat utils.conf
Backup
CPSync
Change_Listener_Port
Create_Database
Deinstall
Install_CPPlugin
Project_migrator
I have the following command in my ksh program:
mkisofs -l -L -R -V ${PACK_NAME}... (1 Reply)
Discussion started by: nir_s
1 Replies
3. HP-UX
Hi all,
I am new to hp-ux.I installed depot file.But i don't know how to configure that depot file.If anybody knows the configuration of depot file please help me.
It's urgent, because i have to configure that depot file.
Thanks & Regards,
Balaraju. (2 Replies)
Discussion started by: balarajum
2 Replies
4. Shell Programming and Scripting
Hi ,
a:) i have configuration file with pattren
<Range start no>,<Range end no>,<type of records to be extracted from the data file>,<name of the file to store output>
eg:
myfile.confg
9899000000,9899999999,DATA,b.dat
9899000000,9899999999,SMS,a.dat
b:) Stucture of my data file is... (3 Replies)
Discussion started by: suparnbector
3 Replies
5. Shell Programming and Scripting
i am trying to use a configuration file to FTP some files.. i am not sure how to call or use a configuration file in script.
can anybody help (5 Replies)
Discussion started by: iamcool
5 Replies
6. Solaris
Hi all-interesting forum.
I am new with Solaris and i would like your advice on this:
I am using a solaris 8 (ultra sparc IIi) workstation at my work,and i am trying to built another one exactly the same-so if the first one fails to have another one as backup.
The problem is that the guy who... (1 Reply)
Discussion started by: ioa_pol
1 Replies
7. Shell Programming and Scripting
Hi
I need a cofiguration file for my perl script...
Suppose my perl script for counting total number of user is
#!/usr/bin/perl -w
$total_users;
#To get how many users currently logged in###########
$total_users=`who | wc -l`;
print... (2 Replies)
Discussion started by: Harikrishna
2 Replies
8. Shell Programming and Scripting
I was writing a script that will FTP files to destination folder. All configuration should be done through a properties files and the main script will read the values from the properties file.
the properties file should contain
1) Source folders
2) Source file pattern
3) Destination folder... (4 Replies)
Discussion started by: rahulsxn660
4 Replies
9. Shell Programming and Scripting
This is a weird problem. Following is my code.
/opt/quest/bin/vastool configure pam sshd
/opt/quest/bin/vastool configure pam ssh
cat /etc/pam.conf | \
awk '$1=="ssh"||$1=="sshd"||$1=="emagent"{sub("prohibit","aix",$NF);}1' OFS='\t' > /etc/pam.conf
cat /etc/ssh/sshd_config | \
sed -e... (2 Replies)
Discussion started by: pjeedu2247
2 Replies
10. Red Hat
Hi,
Could you please explain about "restrict" parameters in /etc/ntp.conf in ntp client and ntp Servers.
Example:
restrict 127.0.0.1
restrict -6 ::1
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Regards,
Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies
LEARN ABOUT FREEBSD
uu_unlock
UUCPLOCK(3) BSD Library Functions Manual UUCPLOCK(3)
NAME
uu_lock, uu_unlock, uu_lockerr -- acquire and release control of a serial device
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <sys/types.h>
#include <libutil.h>
int
uu_lock(const char *ttyname);
int
uu_lock_txfr(const char *ttyname, pid_t pid);
int
uu_unlock(const char *ttyname);
const char *
uu_lockerr(int uu_lockresult);
DESCRIPTION
The uu_lock() function attempts to create a lock file called /var/spool/lock/LCK.. with a suffix given by the passed ttyname. If the file
already exists, it is expected to contain the process id of the locking program.
If the file does not already exist, or the owning process given by the process id found in the lock file is no longer running, uu_lock() will
write its own process id into the file and return success.
uu_lock_txfr() transfers lock ownership to another process. uu_lock() must have previously been successful.
uu_unlock() removes the lockfile created by uu_lock() for the given ttyname. Care should be taken that uu_lock() was successful before call-
ing uu_unlock().
uu_lockerr() returns an error string representing the error uu_lockresult, as returned from uu_lock().
RETURN VALUES
uu_unlock() returns 0 on success and -1 on failure.
uu_lock() may return any of the following values:
UU_LOCK_INUSE: The lock is in use by another process.
UU_LOCK_OK: The lock was successfully created.
UU_LOCK_OPEN_ERR: The lock file could not be opened via open(2).
UU_LOCK_READ_ERR: The lock file could not be read via read(2).
UU_LOCK_CREAT_ERR: Cannot create temporary lock file via creat(2).
UU_LOCK_WRITE_ERR: The current process id could not be written to the lock file via a call to write(2).
UU_LOCK_LINK_ERR: Cannot link temporary lock file via link(2).
UU_LOCK_TRY_ERR: Locking attempts are failed after 5 tries.
If a value of UU_LOCK_OK is passed to uu_lockerr(), an empty string is returned. Otherwise, a string specifying the reason for failure is
returned. uu_lockerr() uses the current value of errno to determine the exact error. Care should be made not to allow errno to be changed
between calls to uu_lock() and uu_lockerr().
uu_lock_txfr() may return any of the following values:
UU_LOCK_OK: The transfer was successful. The specified process now holds the device lock.
UU_LOCK_OWNER_ERR: The current process does not already own a lock on the specified device.
UU_LOCK_WRITE_ERR: The new process id could not be written to the lock file via a call to write(2).
ERRORS
If uu_lock() returns one of the error values above, the global value errno can be used to determine the cause. Refer to the respective man-
ual pages for further details.
uu_unlock() will set the global variable errno to reflect the reason that the lock file could not be removed. Refer to the description of
unlink(2) for further details.
SEE ALSO
lseek(2), open(2), read(2), write(2)
BUGS
It is possible that a stale lock is not recognised as such if a new processes is assigned the same processes id as the program that left the
stale lock.
The calling process must have write permissions to the /var/spool/lock directory. There is no mechanism in place to ensure that the permis-
sions of this directory are the same as those of the serial devices that might be locked.
BSD
March 30, 1997 BSD