Why don't you try something like :
Let me know if this works, because I don't have the proper machine to test the "grub-md5-crypt" function.
I have in one of my scripts something like :
hi
i am having a c code which gives the output of my password in text format
i.e when i run my c code which which gives the password asfollows====>>>>>>
$./passwdprogram ======>>>>>>abc@123(this is the output)
now i have an expect script to remotely ssh which uses the password set in ... (0 Replies)
Hello,
I have a simple expect script I use to ssh to a workstation. I then pass control over to the user with interact.
This script works fine on my HP and Mac, but on my Linux Desktop, I get a problem where the terminal hangs when ever I execute a command in the interact session that requires a... (0 Replies)
hi, everyone:
I just wonder how to save the output of command, I mean everything, save as a string into a variable.
another question is I try to ls the details of a directory, but it works in the shell, not in the script.
for example
code: ls -ltr *se100* | grep ^- | tail -1 | awk '... (1 Reply)
Hi,
I'm trying to come up with a simple expect script that allows me to login to a system and run a single command ... something like this:
#!/usr/bin/expect -f
# let's set some variables
#set password
set ipaddr
set ponumber
set hostname
set timeout -1
# let's now connect to the... (0 Replies)
Hi!
I want to start OO in headless mode via expect -
the oo command would be
su - root -c "/usr/lib/openoffice/program/soffice -headless -nofirststartwizard -norestore -nolockcheck -nocrashreport -nodefault -accept='socket,host=0.0.0.0,port=8100;urp;StarOffice.Service'"
and the expect... (2 Replies)
Hi,
I am using expect to ssh to a remote host and run a program on the remote machine which has a variable runtime. I need to wait until it finishes so I can grab the output file of this program. I am trying to use the output of grep to know when the process finishes. I am trying to capture... (0 Replies)
I know something simple is missing here, "log_user 1" is set . . . after this utility opens ${InFile} (handle? for IntInFile) it needs to look for something to appear in the file ${IntInFile} and then send it to the spawned process. Then I am locking the file ${IntInFile} and clearing it out -... (0 Replies)
Hi
I am new to Expect scripting. I have to connect to a remote server and capture the output. Here I need output of " send "list registered\r"" to be stored in a file. but after execution, /tmp/capture.txt is of 0 byte
#!/usr/bin/expect
spawn ssh abc@10.10.10.10 -p 5022
expect... (2 Replies)
Discussion started by: bns928
2 Replies
LEARN ABOUT X11R4
grub
GRUB(8) FSF GRUB(8)NAME
grub - the grub shell
SYNOPSIS
grub [OPTION]...
DESCRIPTION
Enter the GRand Unified Bootloader command shell.
--batch
turn on batch mode for non-interactive use
--boot-drive=DRIVE
specify stage2 boot_drive [default=0x0]
--config-file=FILE
specify stage2 config_file [default=/boot/grub/menu.lst]
--device-map=FILE
use the device map file FILE
--help display this message and exit
--hold wait until a debugger will attach
--install-partition=PAR
specify stage2 install_partition [default=0x20000]
--no-config-file
do not use the config file
--no-curses
do not use curses
--no-floppy
do not probe any floppy drive
--no-pager
do not use internal pager
--preset-menu
use the preset menu
--probe-second-floppy
probe the second floppy drive
--read-only
do not write anything to devices
--verbose
print verbose messages
--version
print version information and exit
REPORTING BUGS
Report bugs to <bug-grub@gnu.org>.
SEE ALSO update-grub(8), grub-install(8).
The full documentation for grub is maintained as a Texinfo manual in the grub-legacy-doc package. If the info and grub programs are prop-
erly installed at your site, the command
info grub
should give you access to the complete manual.
grub (GNU GRUB 0.97) January 2013 GRUB(8)