Sponsored Content
Top Forums Shell Programming and Scripting Applying lock on a file in Unix Ksh Post 302331454 by kum5256 on Monday 6th of July 2009 08:48:33 AM
Old 07-06-2009
Thanks Ahmad!!!!!

I will test it and will inform you if it worked.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to lock a file in unix?

We wish to keep a sequence number in a file. When someone wants to get the next sequence number we need to lock the file, get the next number and increment it by one. How do you do that? I know how to get the number and increment it but how do I lock the file and test that it is locked or not... (1 Reply)
Discussion started by: tammy_schmuki
1 Replies

2. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

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

3. UNIX for Dummies Questions & Answers

How do i lock a ksh shell script?

Hi, I have a ksh shell script that accesses databases to drop and create tables and the script also creates text files. This shell script is accessed thru a java application that i would like to turn multi-user, but the only way that i can do that is if I can figure out a way to lock the shell... (2 Replies)
Discussion started by: ndedhia1
2 Replies

4. UNIX for Advanced & Expert Users

Testing privileges -lock lockfile /var/lock/subsys/..- Permission denied

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

5. UNIX for Dummies Questions & Answers

applying unix command in EBCIDIC file

Hi, I'm having a general query. If we do cat <file name> on a Ebcidic format file then many unknown characters are displayed in my screen. Can we change the character set related to EBCIDIC in session level and apply the cat command on a EBCIDIC file? By doing so can we able to see the... (2 Replies)
Discussion started by: poova
2 Replies

6. UNIX for Dummies Questions & Answers

Applying python on all the files in one folder --UNIX

Dear all, I know this might be a simple and silly question but I am struggling with it I have a long unix script and in a section of if I want to use a python script which should select all the files and run the script on it (as a whole) the loop I have is selecting file by file and I dont know... (2 Replies)
Discussion started by: A-V
2 Replies

7. Ubuntu

How to lock a file through UNIX KSH shell script?

I wrote two shell scripts in UNIX that renames the same file and scheduled them at the same time. The following are the steps that I followed:- 1. I wrote 2 scripts named s1.sh and s2.sh, both trying to add “exec_” prefix to the name of the files present in a folder i which already don't start... (4 Replies)
Discussion started by: piuli
4 Replies

8. Shell Programming and Scripting

Applying sed against a file from a list of values stored in a variable

Hi Forum. I have the following challenge at work that I need to write a script for. I have a file abc.txt with the following contents: 4560123456 4570987654 4580654321 I want to be able to search/replace in abc.txt - the first 4 characters anything starting with 4560 to 7777; 4570... (3 Replies)
Discussion started by: pchang
3 Replies

9. Shell Programming and Scripting

Applying the same awk over a directory of files with individual file output

I am trying to apply an awk action over multiple files in a directory. It is a simple action, I want to print out the 1st 2 columns (i.e. $1 and $2) in each tab-separated document and output the result in a new file *.pp This is the awk that I have come up with so far, which is not giving me a... (6 Replies)
Discussion started by: owwow14
6 Replies

10. Shell Programming and Scripting

Ksh: How to write the log file simultaneously when .sql file executes by UNIX process

Hello Team- we would like to implement an approach which has to write the log file simultaneously when .sql file is executing by Unix process. At present,it is writing the log file once the process is completed. I've tested the current process with the below approaches and none of them... (1 Reply)
Discussion started by: Hima_B
1 Replies
Padre::Plugin::DataWalker(3pm)				User Contributed Perl Documentation			    Padre::Plugin::DataWalker(3pm)

NAME
Padre::Plugin::DataWalker - Simple Perl data structure browser Padre VERSION
version 0.04 SYNOPSIS
Use this like any other Padre plugin. To install Padre::Plugin::DataWalker for your user only, you can type the following in the extracted Padre-Plugin-DataWalker-... directory: perl Makefile.PL make make test make installplugin Afterwards, you can enable the plugin from within Padre via the menu Plugins->Plugin Manager and there click enable for DataWalker. DESCRIPTION
This plugin uses the Wx::Perl::DataWalker module to provide facilities for interactively browsing Perl data structures. At this time, the plugin offers several menu entries in Padre's Plugins menu: Browse YAML dump file If you dump (almost) any data structure from a running program into a YAML file, you can use this to open the dump and browse it within Padre. Dump a data structure like this: use YAML::XS; YAML::XS::Dump(...YourDataStructure...); This menu entry will show a file-open dialog and let you select the YAML file to load. Let me know if you need any other input format (like Storable's nstore). Browse current document object Opens the data structure browser on the current document object. Like all following menu entries, this is mostly useful for the Padre developers. Browse Padre IDE object Opens the Padre main IDE object in the data structure browser. Useful for debugging Padre. Browse Padre main symbol table Opens the %main:: symbol table of Padre in the data structure browser. Certainly only useful for debugging Padre. AUTHORS
o Steffen Mueller <smueller@cpan.org> o Ahmad M. Zawawi <ahmad.zawawi@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Steffen Mueller. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-03-22 Padre::Plugin::DataWalker(3pm)
All times are GMT -4. The time now is 03:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy