Sponsored Content
Operating Systems Linux Red Hat Execute expect script during firstboot Post 302671185 by AbhishekAgrawal on Friday 13th of July 2012 08:14:49 AM
Old 07-13-2012
Execute expect script during firstboot

closed

Last edited by AbhishekAgrawal; 07-16-2012 at 09:39 AM.. Reason: closed
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

strange expect script behavior, or am i misunderstanding expect scripting?

Hello to all...this is my first post (so please go easy). :) I feel pretty solid at expect scripting, but I'm running into an issue that I'm not able to wrap my head around. I wrote a script that is a little advanced for logging into a remote Linux machine and changing text in a file using sed.... (2 Replies)
Discussion started by: v1k0d3n
2 Replies

2. Shell Programming and Scripting

How to execute a program at expect script

what i need is that after passwordless enter another program should execute. I can succeed passwordless login but ı could not execute (./son) program. pls help me (6 Replies)
Discussion started by: fozay
6 Replies

3. Shell Programming and Scripting

Need help with Expect script for Cisco IPS Sensors, Expect sleep and quoting

This Expect script provides expect with a list of IP addresses to Cisco IPS sensors and commands to configure Cisco IPS sensors. The user, password, IP addresses, prompt regex, etc. have been anonymized. In general this script will log into the sensors and send commands successfully but there are... (1 Reply)
Discussion started by: genewolfe
1 Replies

4. UNIX for Dummies Questions & Answers

how to use expect - send to execute list of commands inside a file

:)hello people i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands. i can read the telephone numbers and insert them into the command with no... (0 Replies)
Discussion started by: auma78
0 Replies

5. Shell Programming and Scripting

expect telnet script execute by cronjob

hi, please help, keep getting this bolded error and look it up and people say its your environment variable though i tried to set it manually in expect..it run fine if i run it manually but once i run it by cronjob it error below..i tried to comment out ip/login info with *.. logfile:: START... (0 Replies)
Discussion started by: cssanangeles
0 Replies

6. Shell Programming and Scripting

Expect script to execute a script on a remote host

Hi, I am new to the expect scripting. I have this expect script as below : spawn ssh remote_server -l id set pass "12345" set opt "s" expect "Password:" {send "$pass\r" ; } expect "*ENTER*" {send "Enter\r"; exp_continue } expect "Please select option :" {send... (2 Replies)
Discussion started by: curt137
2 Replies

7. Programming

Calling expect script inside another expect

Hi, Am very new to expect scripting.. Can You please suggest me how to call an expect script inside another expect script.. I tried with spawn /usr/bin/ksh send "expect main.exp\r" expect $root_prompt and spawn /usr/bin/ksh send "main.exp\r" expect $root_prompt Both... (1 Reply)
Discussion started by: Priya Amaresh
1 Replies

8. Red Hat

Create an unconfigured VMware host from a template that is set to do firstboot --reconfig

I have an Oracle Linux 7.1 vsphere host built. It's be preconfigured with our security configurations. What I would like to do is unconfigure this host. Then set the host to do firstboot --reconfigure. how do I do that using /etc/sysconfig/firstboot? I've tried setting ... (10 Replies)
Discussion started by: os2mac
10 Replies

9. Shell Programming and Scripting

How to execute commands on remote server using expect script?

I need to copy python script file to around 100 servers using expect script. 1. Copy script to my user home first(/home/myhome) on each remote server 2. change permissions on copied file to 766. 3. sudo to appuser1 account on remote server. copy script file from my user home to /usr/bin/... (1 Reply)
Discussion started by: kchinnam
1 Replies

10. Programming

Expect script returning string following a found expect.

I'm fairly new to scripting so this might not be possible. I am using Expect with Cisco switches and need to capture the string after finding the expect request. For example, when I issue "show version" on a Nexus switch, I'm looking to capture the current firmware version: #show version ... (0 Replies)
Discussion started by: IBGaryA
0 Replies
viewcmds(3U)						    InterViews Reference Manual 					      viewcmds(3U)

NAME
CenterCmd, CloseEditorCmd, GravityCmd, GridCmd, GridSpacingCmd, NormSizeCmd, OrientationCmd, RedToFitCmd - commands for modifying editor attributes SYNOPSIS
#include <Unidraw/Commands/viewcmds.h> DESCRIPTION
The Unidraw library predefines several commands for altering the attributes of editors and their viewers. CenterCmd centers each of the editor's viewers. CloseEditorCmd closes the editor, removing it from the screen. GravityCmd turns gravity on by activating the editor's GravityVar, if it defines one. GridCmd toggles the visibility of each viewer's grid, while GridSpacingCmd lets the user specify the grid spacing for all grids. Finally, NormSizeCmd sets each viewer's magnification to a factor of one, OrientationCmd toggles each viewer's ori- entation between landscape mode and portrait mode, and RedToFitCmd changes each viewer's magnification so that its component view is fully visible. CENTERCMD PUBLIC OPERATIONS
CenterCmd(ControlInfo*) CenterCmd(Editor* = nil) Construct a new CenterCmd. virtual void Execute() Execute simply calls CenterOp on each of the editor's viewers. virtual boolean Reversible() CenterCmd is not reversible. CLOSEEDITORCMD PUBLIC OPERATIONS
CloseEditorCmd(ControlInfo*) CloseEditorCmd(Editor* = nil) Construct a new CloseEditorCmd. virtual void Execute() Execute calls Close on the global unidraw object with the CloseEditorCmd's editor as its argument. Execute prompts the use to save the component if it does not appear in any other open editors. If no other editors are open at all, Execute creates and executes a QuitCmd. virtual boolean Reversible() CloseEditorCmd is not reversible. GRAVITYCMD PUBLIC OPERATIONS
GravityCmd(ControlInfo*) GravityCmd(Editor* = nil) Construct a new GravityCmd. virtual void Execute() Execute calls Activate on the editor's GravityVar (if it defines one) with the inverse of the value returned by GravityVar's IsAc- tive operation. virtual boolean Reversible() GravityCmd is not reversible. GRIDCMD PUBLIC OPERATIONS
GridCmd(ControlInfo*) GridCmd(Editor* = nil) Construct a new GridCmd. virtual void Execute() Execute calls the Visibility operation on the grid from each of the editor's viewers, supplying the inverse of the value returned by Grid's IsVisible oepation. virtual boolean Reversible() GridCmd is not reversible. GRIDSPACINGCMD PUBLIC OPERATIONS
GridSpacingCmd(ControlInfo*) GridSpacingCmd(Editor* = nil) Construct a new GridSpacingCmd. virtual void Execute() Execute prompts the user to specify grid spacing information through a GridDialog. If the user does not cancel the dialog, then Execute will pass the specified grid spacing to a SetSpacing call on each viewer's grid. virtual boolean Reversible() GridSpacingCmd is not reversible. NORMSIZECMD PUBLIC OPERATIONS
NormSizeCmd(ControlInfo*) NormSizeCmd(Editor* = nil) Construct a new NormSizeCmd. virtual void Execute() Execute simply calls SetMagnification with an argument of 1 on each of the editor's viewers. virtual boolean Reversible() NormSizeCmd is not reversible. ORIENTATIONCMD PUBLIC OPERATIONS
OrientationCmd(ControlInfo*) OrientationCmd(Editor* = nil) Construct a new OrientationCmd. virtual void Execute() Execute switches the orientation of each of the editor's viewers via their SetOrientation operation. virtual boolean Reversible() OrientationCmd is not reversible. REDTOFITCMD PUBLIC OPERATIONS
RedToFitCmd(ControlInfo*) RedToFitCmd(Editor* = nil) Construct a new RedToFitCmd. virtual void Execute() Execute simply calls ReduceToFit on each of the editor's viewers. virtual boolean Reversible() RedToFitCmd is not reversible. SEE ALSO
BasicDialog(3U), Command(3U), Grid(3U), Unidraw(3U), Viewer(3U), catcmds(3U), globals(3U), statevars(3U) Unidraw 24 January 1991 viewcmds(3U)
All times are GMT -4. The time now is 05:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy