Sponsored Content
Special Forums UNIX Desktop Questions & Answers grub, ok, bash, edit, kmdb and what else? Post 302438946 by mani1413 on Wednesday 21st of July 2010 08:45:25 AM
Old 07-21-2010
grub, ok, bash, edit, kmdb and what else?

Hello

There is a > prompt at Grub, # prompt for the console and $ for bash, but I am clueless about when and how to get into a specific prompt, how to move around between one prompt to another and how to exit.

Is there a very basic guide anywhere that CLEARLY explains the type of shell prompts? Or, would someone here be kind enough to explain it here?

Thank you.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grub problem- keeps rebooting as soon as it tries to do grub

Hi, I installed solaris 10 a few weeks ago. It was working fine during the past two weeks. However, now when I start to load to the drive, I get this problem: The BIOS screen comes up like normal, then screen goes blank and a message "Grub loading stage 2" flashes real quick then the computer... (1 Reply)
Discussion started by: moesays
1 Replies

2. Red Hat

how to edit the bash shell?

Hello friends, I want to add some features to the bash shell.I logged in as the root.Even then could not view the source code of bash shell in RH 9,Fedora 8.It is in encrypted form.Can you please tell me how to include my code into bash shell. Please give me a sample code so that I can understand... (3 Replies)
Discussion started by: nsharath
3 Replies

3. Linux

Edit Grub? help!

Please help! I have installed 5 Linux OS in the following order: 1st : OpenSUSE 11.0 2nd : Ubuntu 8.4 3rd : Ubuntu 8.10 4th : OpenSUSE 11.1 5th : Fedora 10 Here is the scenario, at the 4th installation i can still choose which OS to boot as what OpenSUSE grub displays. Now, after... (3 Replies)
Discussion started by: etcpasswd
3 Replies

4. Shell Programming and Scripting

In bash, read to a variable with a default value to edit

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)
Discussion started by: pankai
7 Replies

5. Shell Programming and Scripting

Edit csv file with bash

I' trying to use bash to edit a csv file from this format: "apples","oranges","grapes" "bread","butter","milk" To this: "apples oranges grapes" So that if I would open the csv file in open office, "apples oranges grapes" Would be in one single cell, and "bread (2 Replies)
Discussion started by: locoroco
2 Replies

6. Red Hat

Can we specify which grub.conf to use in grub-install.

Hi, Can we specify which grub.conf to use while installing grub on RHEL. We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf. Can we use grub-install for this purpose? (4 Replies)
Discussion started by: successlin
4 Replies

7. Shell Programming and Scripting

scan and edit in bash

so assume I have a dozen files in local directory and half of them are .txt and I only want to scan these text files and go inside each of them and replace absolute paths (e.g. C:\blabla\more blahblah\myfile.txt) with just the name of that file (myfile.txt) and then go to next line and look if... (6 Replies)
Discussion started by: Jaymz
6 Replies

8. UNIX for Dummies Questions & Answers

"/boot/grub/grub.conf" VS "/etc/grub.conf"

can someone please explain me the difference between these two files: "/boot/grub/grub.conf" and "/etc/grub.conf" .. (7 Replies)
Discussion started by: stunn3r
7 Replies

9. Shell Programming and Scripting

Plus edit and edit header

Dear Masters, i have a problem with unix script, till now i just know about how to create header. i want to change file below -63395.2 72653.5 -63361.3 72696.0 ... (9 Replies)
Discussion started by: ipatah
9 Replies

10. Shell Programming and Scripting

Bash script - add/edit to file and save - sed?

I'm working on a script to execute a number of items. One being, editing particular files to add certain lines. I'm attempting to utilize sed, but, having issues when running from a bash script. Assistance is greatly appreciated. My example: sed -i '14 i\ # add these lines add these lines to... (5 Replies)
Discussion started by: Nvizn
5 Replies
sia_collect_trm(3)					     Library Functions Manual						sia_collect_trm(3)

NAME
sia_collect_trm - Parameter collection routine for SIA (Security Integration Architecture) LIBRARY
Standard C library (libc.so and libc.a) SYNOPSIS
#include <sia.h> #include <siad.h> int sia_collect_trm( int timeout, int rendition, unsigned char *title, int num_prompts, prompt_t *prompts); PARAMETERS
timeout The timeout parameter is the number of seconds that the sia_collect_trm() routine waits. rendition The rendition parameter is used to determine the style of the presentation and is set to one of the following values: SIAMENUONE Select one of the choices given. SIAMENUANY Select any of the choices given. SIAFORM Fill out the form. SIAONELINER One question with one answer. SIAINFO Information only. SIAWARNING ERROR or WARNING message. title Pointer to a title string. A null pointer indicates no title. num_prompts The number of prompts in this collection. prompts A pointer to a prompt_t prompts structure. DESCRIPTION
The sia_collect_trm() routine provides parameter collection capability. The SIA session interfaces and change secure information inter- faces use a pre-defined parameter collection capability. The calling application passes the address to a parameter collection routine through the SIA middle layer to the siad_* routines. This collection routine allows different security mechanisms to prompt the user for different parameters without having to be aware of the user interface details. EXAMPLES
The following examples are coded to work with any collection routine callback, not just sia_collect_trm(); as such are not full standalone modules. The following example shows how the sia_collect_trm() routine can be used to prompt for username and password (such as in login and xdm): extern int (*collect)(); /* current SIA collection callback */ prompt_t prompts[8]; /* space for prompts */ char name[16], password[80]; /* where to store the data */ /* set up prompts for username & password, latter not echoed */ prompts[0].prompt = (unsigned char *) "login: "; prompts[0].result = (unsigned char *) name; prompts[0].min_result_length = 1; prompts[0].max_result_length = 8; prompts[0].control_flags = 0; prompts[1].prompt= (unsigned char *) "Password:"; prompts[1].result = (unsigned char *) password; prompts[1].min_result_length = 0; prompts[1].max_result_length = MAX_PWD_LENGTH; prompts[1].control_flags = SIARESINVIS; if((*collect)(0, SIAFORM, NULL, 2, &prompts) != SIA- COLSUCCESS) return(SIADFAIL | SIADSTOP); /* could not collect name, password */ The following example shows how the sia_collect_trm() routine can choose from a menu: extern int (*collect)(); /* current SIA collection callback */ int i; /* indexing */ int collecterror; /* status */ prompt_t prompts[3]; /* prompt control area */ memset(prompts, 0, sizeof prompts); prompts[0].prompt = (unsigned char *) "a"; prompts[1].prompt = (unsigned char *) "b"; prompts[2].prompt = (unsigned char *) "c"; collecterror = (*collect)(SIAONEMIN, SIAMENUONE, "Pick one of the following: ", 3, prompts); if (collecter- ror != SIACOLSUCCESS) { (void) fputs("Collection failed. ", stderr); return -1; } for (i = 0; i < 3; i++) { if (prompts[i].result) { (void) printf("You picked %s. ", prompts[i].prompt); return 0; } } (void) fputs("Collection return error. ", stderr); return -1; The following example shows how the sia_collect_trm() routine can put out an information message: extern int (*collect)(); /* current SIA collection callback */ prompt_t prompts[1]; /* space for the output text control */ prompts[0].prompt = (unsigned char *) "Example text"; (void)(*collect)(0, SIAINFO, "", 1, prompts); return 0; RETURN VALUES
The sia_collect_trm() routine returns either SIASUCCESS or SIAFAIL. ERRORS
The errno value is not (normally) set explicitly by sia_* routines. The errno values are those returned from the dynamic loader interface, from dependent (siad_*) routines, or from malloc. Possible errors include resource constraints (no memory) and various authentication failures. FILES
/etc/sia/matrix.conf RELATED INFORMATION
sia_ses_init(3), sia_chg_finger(3), matrix.conf(4) Security delim off sia_collect_trm(3)
All times are GMT -4. The time now is 02:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy