Sponsored Content
Full Discussion: macro on shell script ?
Top Forums UNIX for Dummies Questions & Answers macro on shell script ? Post 5168 by inquirer on Wednesday 8th of August 2001 09:40:48 AM
Old 08-08-2001
macro on shell script ?

in shifts we used to run a script where in we need to choose from different options. for example the first part would go like this:
========
menu
========
1)blah
2)blah blah
3)blah blah blah

you have chosen:

then after that a series of multiple choice so on and so forth...what i would like to do is every time i run that script another script/macro will answer those multiple choice for me. is that possible? help me on this.
inquirer
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

VI Macro Problem

I'm having a problem with a macro i put in my .exrc file. Here's what I put: map #I ^[ ^ [ is control-v and the escape key. It places a # a the beginning of a line by simply hitting the # on the keyboard. Problem is, now when I hit "o" or "O" to move up or down a line, it places a # at... (1 Reply)
Discussion started by: Atama
1 Replies

2. Programming

macro

Can i define a macro for a function of 10 LOC. (9 Replies)
Discussion started by: bankpro
9 Replies

3. Shell Programming and Scripting

How to launch a Csh shell script using Excel Macro ?

Hi all. I need to use excel macro at my desktop to launch a csh script which is in a solaris environment. What is the code that i can use in macro to help me with that ? Basically, the code need to telnet or ftp to the solaris environment and just run the script and the macro will output in an... (1 Reply)
Discussion started by: Raynon
1 Replies

4. UNIX for Dummies Questions & Answers

Return shell value to a VI macro

Hi, Have searched around for a solution to this and get frustrating close but have not nailed it. vi on HP-UX what I'm trying to do is utilise the key mapping available within Vi to run a shell script which uses awk script to scan the file i'm working on and return the line number or... (1 Reply)
Discussion started by: sjdolding
1 Replies

5. Programming

Make-question - redefine a macro, using another macro..?

I think there is no problem to use any macro in a new macro definishion, but I have a problem with that. I can not understand why? I have a *.mak file that inludes file with many definitions and rules. ############################################## include dstndflt.mak ... One of the... (2 Replies)
Discussion started by: alex_5161
2 Replies

6. UNIX for Dummies Questions & Answers

Wanting to run a macro/script from PuTTY

We currently use TUN as an emulation program to connect to various unix applications. I am looking at moving to PuTTY release 0.60 but am getting stuck as one application runs a macro at startup to run a program. My question is, can you run a macro from PuTTY? Any pointers would be great. (0 Replies)
Discussion started by: virtualpaul
0 Replies

7. Shell Programming and Scripting

Invoke a script in UNIX using Excel Macro

Hi, I am using Send Keys to connect to UNIX server and invoke a script . Is there an alternate way to connect to UNIX server using Excel macro and invoke a UNIX Shell script? Anu (2 Replies)
Discussion started by: anandita.jha
2 Replies

8. UNIX for Dummies Questions & Answers

macro

Can I create a macro in UNIX? If so where do I find out how? (1 Reply)
Discussion started by: JD_Sal
1 Replies

9. Shell Programming and Scripting

Converting macro to bash script

Gents, Please can you help me with this. When column 49 == 2 Before X 4714 14710 69445.00 19257.001 1218 12271 69596.00 19460.00 19478.001 X 4714 14710 69445.00 19257.001 1228 12292 69596.00 19480.00 19480.001 After X 4714 14710 69445.00 19257.001 1218... (1 Reply)
Discussion started by: jiam912
1 Replies

10. Shell Programming and Scripting

Script solution - running Excel macro in SLES

Hello all, I'm here again with new trouble. I need to find any possible way to apply excel macro on excel file in SLES server, or to convert that macro somehow. Could you please share your ideas, and help me with this? Thank you in advance ps (attached macro is with changed extension,... (14 Replies)
Discussion started by: bigbrobg
14 Replies
explain_select_or_die(3)				     Library Functions Manual					  explain_select_or_die(3)

NAME
explain_select_or_die - blah blah and report errors SYNOPSIS
#include <libexplain/select.h> void explain_select_or_die(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); DESCRIPTION
The explain_select_or_die function is used to call the select(2) system call. On failure an explanation will be printed to stderr, obtained from explain_select(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_select_or_die(nfds, readfds, writefds, exceptfds, timeout); nfds The nfds, exactly as to be passed to the select(2) system call. readfds The readfds, exactly as to be passed to the select(2) system call. writefds The writefds, exactly as to be passed to the select(2) system call. exceptfds The exceptfds, exactly as to be passed to the select(2) system call. timeout The timeout, exactly as to be passed to the select(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
select(2) blah blah explain_select(3) explain select(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_select_or_die(3)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy