Sponsored Content
Full Discussion: Lock file creates with '?'
Top Forums Shell Programming and Scripting Lock file creates with '?' Post 302777877 by Don Cragun on Friday 8th of March 2013 02:17:28 PM
Old 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

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

2. Shell Programming and Scripting

sed in script creates output file ending with '?' (^M)

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

Script sometimes creates an empty file

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

Script sometimes creates an empty file

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

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

6. UNIX for Dummies Questions & Answers

Redirection creates empty file

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

Writing a script that creates a 1GB file with zeros using dd

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

Script creates additional file

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

Writing a script that creates a 1GB file with zeros using dd

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
KUESVR(7)						 Miscellaneous Information Manual						 KUESVR(7)

NAME
kuesvr - the CERN KUIP edit server SYNOPSIS
kuesvr -p pid -c cmd -t tmpfile [ -e editor ] file DESCRIPTION
kuesvr is a small program called from KUIP. (KUIP stands for Kit for a User Interface Package; it is part of the Packlib library from CERN.) kuesvr allows the user to call up an editor from within a KUIP program (PAW, for instance) on the file given by file, and continue to use the program asynchronously. In general kuesvr is not called directly from the command line (in Debian it is not even located in the $PATH); instead it will be run automatically from a KUIP program when an editor is needed, as long as the command line set with KUIP's HOST_EDITOR command ends with an ampersand ('&'), and $DISPLAY is set. If $DISPLAY is unset (or, on non-Debian systems, if kuesvr cannot be found in $PATH), the ampersand will be ignored. For instance, PAW > HOST_EDITOR 'emacs -geometry 80x48 &' The editor is expected to create its own graphical window. However, since 'vi' is a frequent choice, setting HOST_EDITOR to 'vi &' will automatically be interpreted as 'x-terminal-emulator -e vi &' instead. OPTIONS
-c cmd Specifies the KUIP command invoking the edit server. -e editor Specifies the editor to be used. By default it is vi. Even though this flag is optional, it will be set anyway when kuesvr is called from the KUIP library. -p pid Specifies the process ID of the calling program. -t tmpfile Specifies the name of the temporary file used for communication between the calling program and the edit server. This is a Debian extension added for security reasons. It is a required argument, so this version of kuesvr will not work with a KUIP application using CERN's unmodified Packlib; nor will CERN's unmodified kuesvr work with the Debian version of Packlib. SEE ALSO
o paw(1) - a program that can use the edit server o the KUIP online help available with command "help host_editor" o the KUIP manual, available at http://wwwasdoc.web.cern.ch/wwwasdoc/psdir/kuip.ps.gz AUTHOR
This manual page was written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others). March 4, 2005 KUESVR(7)
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy