9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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)
Discussion started by: boqsc
9 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: asjaiswal
2 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: profileuser
25 Replies
5. Shell Programming and Scripting
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)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
Input file:
2 aux003.net3.com error12
6 awn0117.net1.com error13
84 aux008 error14
29 aux001.ha.ux.isd.com error12
209 aux002.vm.ux.isd.com error34
21 alx0027.vm.net2.com error12
227 dux001.net5.com error123
22 us008.dot.net2.com error121
13 us009.net2.com error129Expected Output:
2... (4 Replies)
Discussion started by: sQew
4 Replies
7. Shell Programming and Scripting
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)
Discussion started by: mcclunyboy
2 Replies
8. UNIX for Dummies Questions & Answers
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)
Discussion started by: skewbie
2 Replies
9. Shell Programming and Scripting
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)
Discussion started by: wiseguy
9 Replies
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)