Hallo,
i need a Prompting read in my script:
read -p "Enter your command: " command
But i always get this Error:
-p: is not an identifier
When I run these in c-shell i get this error
/usr/bin/read: read: bad option(s)
How can I use a Prompt in the read command? (9 Replies)
Can anyone tell me how to reset the command prompt back to the original 'bas'h prompt as these have all been changed via the /etc/profile to add username and hostname but some are too long. I just want to run it in a local .profile to put it back.
Thanks (2 Replies)
Hi,
I have a script which deletes various files on the last modified date.
command -
find /directory/ -mtime +0 -exec rm {} \;
How can I "simply" log the filenames of the files which are deleted?
I appreciate your help.
edits - would this work find /directory/ -mtime +0 -exec rm {}... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi All,
I'm completely new to bash scripting and still learning my way through albeit vey slowly.
I need to know where to insert my server names', my ip address numbers through out the script alas to no avail.
I'm also searching on how to save .sh (bash shell) script properly.... (25 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
I've found this script part on the stackoverflow:
if ; then
sudo bash "$0" "$@";
exit "$?";
fi
I realized that sudo bash "$0" "$@"; is the only needed for me.
But the strange thing happens when I move this line outside the IF statement:
sudo bash "$0" "$@"; stops the... (9 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT OSX
vllog
VLLOG(5) AFS File Reference VLLOG(5)NAME
VLLog - Traces Volume Location Server operations
DESCRIPTION
The VLLog file records a trace of Volume Location (VL) Server (vlserver process) operations on the local machine and describes any error
conditions it encounters.
If the VLLog file does not already exist in the /var/log/openafs directory when the VL Server starts, the server process creates it and
writes initial start-up messages to it. If there is an existing file, the VL Server renames it to VLLog.old, overwriting the existing
VLLog.old file if it exists.
The file is in ASCII format. Administrators listed in the /etc/openafs/server/UserList file can use the bos getlog command to display its
contents. Alternatively, log onto the server machine and use a text editor or a file display command such as the UNIX cat command. By
default, the mode bits on the VLLog file grant the required "r" (read) permission to all users.
The VL Server records operations only as it completes them, and cannot recover from failures by reviewing the file. The log contents are
useful for administrative evaluation of process failures and other problems.
The VL Server can record messages at three levels of detail. By default, it records only very rudimentary messages. To increase logging to
the first level of detail, issue the following command while logged onto the database server machine as the local superuser "root".
# kill -TSTP <vlserver_pid>
where <vlserver_pid> is the process ID of the vlserver process, as reported in the output from the standard UNIX ps command. To increase to
the second and third levels of detail, repeat the command.
To disable logging, issue the following command.
# kill -HUP <vlserver_pid>
To decrease the level of logging, first completely disable it and then issue the "kill -TSTP" command as many times as necessary to reach
the desired level.
SEE ALSO UserList(5), bos_getlog(8), vlserver(8)COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 VLLOG(5)