My script needs to read a variable from the user. But before the user types the input, I want to give a default value so the user can edit the default value for input.
How can I implement it?
My script is something like:
#!/bin/sh
read -p 'Port number: ' -e port_number
echo "Port... (7 Replies)
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Hello, I am quite new in shell scripting and I would like to write a little scritp to run a program on some parameters files.
all my parameters files are in the same directory, so pick them up with
ls *.para >>dirafter that I have a dir file like that:
param1.para
param2.para
etc...
I... (2 Replies)
Hi All,
Am trying to write wrapper shell/bash script on a utility tool for which i need to pass 2 files as arugment to execute utility tool.
Wraper script am trying is to do with above metion 2 files.
utility tool accepts :
a. userinfo file : which contains username
b. item file : which... (2 Replies)
Heyas
I'm trying to read/display a file its content and put borders around it (tui-cat / tui-cat -t(ypwriter).
The typewriter-part is a 'bonus' but still has its own flaws, but thats for later.
So in some way, i'm trying to rewrite cat using bash and other commands.
But sadly it fails on... (2 Replies)
Hello,
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
do
COMMAND
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
I have a test file with the following format, It contains the username_date when the user was locked from the database.
$ cat lockedusers.txt
TEST1_21062016
TEST2_02122015
TEST3_01032016
TEST4_01042016
I'm writing a ksh script and faced with this difficult scenario for my... (11 Replies)
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Hi,
I am attempting to assign the output of the following command, to two bash variables, var1 and var2 using "read," but it doesn't seem to be working.
# openstack hypervisor stats show | awk -F'|' 'NR==14{print $2,$3}'
vcpus 92
# echo $?
0
# openstack hypervisor... (4 Replies)
Discussion started by: sand1234
4 Replies
LEARN ABOUT CENTOS
reporter-ureport
REPORTER-UREPORT(1) LIBREPORT MANUAL REPORTER-UREPORT(1)NAME
reporter-ureport - Reports ABRT problems in format of micro report
SYNOPSIS
reporter-ureport [-v] [-c CONFFILE] [-u URL] [-k] [-A -a bthash -B -b bug-id -E -e email] [-r] [-d DIR]
DESCRIPTION
The tool reads problem directory DIR, assembles an micro report from the loaded problem data and sends the micro report to uReport server
for updating statistics and fast analysis. The results of the analysis are stored in problem data in form of problems elements.
reporter-ureport updates reported_to
Configuration file
If not specified, CONFFILE defaults to /etc/libreport/plugins/ureport.conf. Configuration file lines should have PARAM = VALUE format. The
parameters are:
URL
Base sever HTTP(S) address.
SSLVerify
Use no/false/off/0 to disable verification of server's SSL certificate. (default: yes)
SSLClientAuth
If this option is set, client-side SSL certificate is used to authenticate to the server so that it knows which machine it came from.
Possible values are:
rhsm
Uses the system certificate that is used for Red Hat subscription management.
puppet
Uses the certificate that is used by the Puppet configuration management tool.
<cert_path>:<key_path>
Manually supply paths to certificate and the corresponding key in PEM format.
ContactEmail
Email address attached to a bthash on the server.
Parameters can be overridden via $uReport_PARAM environment variables.
OPTIONS -c FILE
Path to configuration file
-a, --attach BTHASH
bthash of uReport to attach (conflicts with -A)
-A, --attach-rt
Attach to a bthash from reported_to (conflicts with -a)
-b, --bug-id NUM
Attach RHBZ bug (requires -a)
-B, --bug-id-rt
Attach last RHBZ bug from reported_to (requires -a|-A, conflicts with -b)
-e, --email EMAIL
Contact e-mail address (requires -a|-A, conflicts with -E)
-E, --email-env
Contact e-mail address from environment (requires -a|-A, conflicts with -e)
-d, --problem-dir DIR
Path to problem directory.
-k, --insecure
Allow insecure connection to ureport server
-t, --auth SOURCE
Enables client authentication. See SSLClientAuth configuration file option for list of possible values.
-v
Be more verbose. Can be given multiple times.
-u, --url URL
Specify server URL
ENVIRONMENT VARIABLES
Environment variables take precedence over values provided in the configuration file.
uReport_URL
Base sever HTTP(S) address.
uReport_SSLVerify
Use yes/true/on/1 to verify server's SSL certificate. (default: yes)
uReport_ContactEmail
Email address attached to a bthash on the server.
SEE ALSO ureport.conf(5)AUTHORS
o ABRT team
LIBREPORT 2.1.11 06/18/2014 REPORTER-UREPORT(1)