03-08-2013
vi, emacs, ex, ed, or any other editor of your choice that was intended for use on systems other than Windows.
This User Gave Thanks to Don Cragun For This Post:
9 More Discussions You Might Find Interesting
1. Red Hat
Hello all,
If anyone has time, I have a few questions:
How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too.
1. How to lock the account after a few (like 3) invalid password attempts?
2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies
2. Shell Programming and Scripting
Hi,
I'm trying to use sed within a shell script (bash, running ubuntu). The command works fine from the command line, but when I use it within the script, rather than creating a file with the name I've specified, it creates one that ends with a question mark '?' when you use ls, e.g.... (3 Replies)
Discussion started by: jennykay
3 Replies
3. Shell Programming and Scripting
I have a script that runs ditto for me, and occasionally (if I exit the script while ditto is running in the background) it will leave an empty file named 0 in the script's directory. The next time I run the script, it generates incorrect data because of this file. I know I can easily insert a... (1 Reply)
Discussion started by: reid
1 Replies
4. Shell Programming and Scripting
I have a script that runs ditto for me, and occasionally (if I exit the script while ditto is running in the background) it will leave an empty file named 0 in the script's directory. The next time I run the script, it generates incorrect data because of this file. I know I can easily insert a... (1 Reply)
Discussion started by: reid
1 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies
6. UNIX for Dummies Questions & Answers
I'm using a script that does some modifications to data on disc and updates the database. The script (perl) uses STDOUT so the results are printed to the screen. I don't have permissions to modify the script. I want to capture the results in a file so I can see if errors occurred and also keep... (3 Replies)
Discussion started by: surib
3 Replies
7. Shell Programming and Scripting
I am new to Linux. Using latest version of Ubuntu.
I want to make a script that creates a 1GB file filled with zeros using dd and then formats the file as vfat with a label of "MYFILE".
If anyone can help me it would be appreciated. (9 Replies)
Discussion started by: paviter619
9 Replies
8. Red Hat
Hi,
I have created a test script like this :
# cat script1.sh
DAY=$(date +%d)
MONTH=$(date +%b)
YEAR=$(date +%Y)
BC01="Blast_BC01"
BC15="Blast_BC15"
DIR1="$MONTH$YEAR_$BC01"
DIR2="$MONTH$YEAR_$BC07"
DIR3="$MONTH$YEAR_$BC15"
if ;then
mkdir -p "$YEAR/$DIR3"
fi
#
When I... (5 Replies)
Discussion started by: anaigini45
5 Replies
9. Shell Programming and Scripting
I am new to Linux. Using latest version of Ubuntu.
I want to make a script that creates a 1GB file filled with zeros using dd and then formats the file as vfat with a label of "MYFILE".
If anyone can help me it would be appreciated. (1 Reply)
Discussion started by: amandasaza08
1 Replies
LEARN ABOUT DEBIAN
ost_lockfile
ost::Lockfile(3) Library Functions Manual ost::Lockfile(3)
NAME
ost::Lockfile -
This class is used to create a 'named' lock entity that can be used to control access to a resource between multiple processes.
SYNOPSIS
#include <process.h>
Public Member Functions
Lockfile (const char *name)
Create a lock under a known name.
Lockfile ()
Create a new lock object that can be used to make locks.
~Lockfile ()
Destroy the current lock and release it.
bool lock (const char *name)
Lock a system-wide name for this process.
void unlock (void)
Release an acquired lock.
bool isLocked (void)
Flag if the current process has aqcuired a lock.
Detailed Description
This class is used to create a 'named' lock entity that can be used to control access to a resource between multiple processes.
The posix implimentation uses a pidfile and the win32 version uses a globally visible mutex.
Author:
David Sugar dyfet@ostel.com System-wide named lock
Constructor & Destructor Documentation
ost::Lockfile::Lockfile (const char *name)
Create a lock under a known name. Parameters:
name of system-wide lock to create.
ost::Lockfile::Lockfile ()
Create a new lock object that can be used to make locks.
ost::Lockfile::~Lockfile () [inline]
Destroy the current lock and release it.
Member Function Documentation
bool ost::Lockfile::isLocked (void)
Flag if the current process has aqcuired a lock. Returns:
true if we have the lock.
bool ost::Lockfile::lock (const char *name)
Lock a system-wide name for this process. If the lock is successful, return true. If an existing lock was already acquired, release it
first.
Returns:
true if lock successful.
Parameters:
name system-wide lock to use.
void ost::Lockfile::unlock (void)
Release an acquired lock.
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Lockfile(3)