10 More Discussions You Might Find Interesting
1. Programming
Hi,
does someone know how to make a keyboard data input
in the AWK programming language ?
Regards
Zabo (6 Replies)
Discussion started by: Zabo
6 Replies
2. Shell Programming and Scripting
Hi,
I am working on a script, which requests users to enter input.
Ex: read -p "Please enter your email id:" email
I don't want users skipping this entry, this has to be mandatory.I dont want to proceed without input.
I can do a check if variable $email is empty and proceed if not.But, i... (7 Replies)
Discussion started by: aravindadla
7 Replies
3. Shell Programming and Scripting
Hello,
i`m trying to create an network monitoring script and i dont know how to make affect that script by pressing an key from keyboard and that script runs not in while or for or any other loop, but with bash command watch
for example: i have created an file (for example check) with content... (0 Replies)
Discussion started by: bacarrdy
0 Replies
4. Shell Programming and Scripting
hi all
i'm new in shell scripting and now i'm working on project and i wanna make a function take input from user and test it's datatype then if correct write it to file
i wounder what is the best way to do this ?
can i use awk ?
edit by bakunin: Please give your threads a meaningful... (5 Replies)
Discussion started by: mohamed91
5 Replies
5. Homework & Coursework Questions
I need to Write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. with automated following tasks:
Copy directory tree
Delete files or directories
Output Information (this part is done )
*Copy directory tree
The “Copy... (2 Replies)
Discussion started by: femchi
2 Replies
6. Shell Programming and Scripting
> sed ''
Hello
hi
Hello output
How
hi output
^D
How
>
sed should take each line as input, process and output the result. In the above scenario the input is passed from keyboard and the output of 'Hello' as you can see is displayed on the screen after 'hi' is passed as input but not as... (1 Reply)
Discussion started by: loggedin.ksh
1 Replies
7. Shell Programming and Scripting
How would I change up a script that currently has something like:
bash script
echo what's 1 2 3 4?
then using read 1 2 3 4
I type 1 2 3 4.
so in the script i can do stuff like
echo $1 $2 $3 $4
and such...
i was just doing echo "1 2 3 4"|bash script
But was wondering how could I... (5 Replies)
Discussion started by: biopulse
5 Replies
8. Shell Programming and Scripting
Hello, i know how to retrieve a user input (read), and how to manage the different options (case statement).
But... could anybody show me a script that, if the user option is incorrect, don't allow to continue the excution, i.e., if the value entered is not 1 or 2, the script shows a question.
... (2 Replies)
Discussion started by: aristegui
2 Replies
9. Programming
Does anyone know how do you determine the user idle time of STDIN in order to log the user out for being idle too long. I would like to write a c program to do this but I it is not clear upon how to determine idle time from keyboard input. I have found that the "who.c" source file uses the last... (4 Replies)
Discussion started by: cpaquette
4 Replies
10. Shell Programming and Scripting
Setup Info:
This User Id and Password mention below are being used with the ISQL command to connect to a sybase database so they are likely to not be the same as those that were signed on from the session.
Situation:
Using a korn shell, the shell prompts for a User Id and Password. During the... (1 Reply)
Discussion started by: anthreedhr
1 Replies
OSINFO-INSTALL-SCRIPT.C(1) Virtualization Support OSINFO-INSTALL-SCRIPT.C(1)
NAME
osinfo-install-script - generate a script for automated installation
SYNOPSIS
osinfo-install-script [OPTIONS...] OS-ID
DESCRIPTION
Generate a script suitable for performing an automated installation of "OS-ID". "OS-ID" should be a URI identifying the operating system,
or its short ID.
By default a script will be generated for a "JEOS" style install.
OPTIONS
--profile=NAME
Choose the installation script profile. Defaults to "jeos", but can also be "desktop", or a site specific profile name
--config=key=value
Set the configuration parameter "key" to "value".
CONFIGURATION KEYS
The following configuration keys are available
"hardware-arch"
The hardware architecture
"l10n-timezone"
The local timezone
"l10n-keyboard"
The local keyboard layout
"l10n-language"
The local language
"admin-password"
The administrator password
"user-password"
The user password
"user-login"
The user login name
"user-realname"
The user real name
"user-autologin"
Whether to automatically login the user
"user-admin"
Whether to give the user administrative privileges
"reg-product-key"
The software registration key
"reg-login"
The software registration user login
"reg-password"
The software registration user password
EXAMPLE USAGE
The following usage generates a Fedora 16 kickstart script
# osinfo-install-script
--profile jeos
--config l10n-timezone=GMT
--config l10n-keyboard=uk
--config l10n-language=en_GB
--config admin-password=123456
--config user-login=berrange
--config user-password=123456
--config user-realname="Daniel P Berrange"
fedora16
EXIT STATUS
The exit status will be 0 if an install script is generated, or 1 on error
AUTHORS
Daniel P. Berrange <berrange@redhat.com>
COPYRIGHT
Copyright (C) 2012 Red Hat, Inc.
LICENSE
"osinfo-install-script" is distributed under the termsof the GNU LGPL v2 license. This is free software; see the source for copying
conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
libosinfo-0.2.7 2013-04-10 OSINFO-INSTALL-SCRIPT.C(1)