Sponsored Content
Top Forums Shell Programming and Scripting Creating executable script--please help Post 302699741 by smitra on Wednesday 12th of September 2012 08:34:09 AM
Old 09-12-2012
this is the output so far...

Code:
1. Delete row from file
2. Delete columns from file
Select your choice [1 or 2]?
1
./test-array: line 14: syntax error near unexpected token `do'
./test-array: line 14: `        do '
smitra:Desktop smitra$

And further I am having a problem to name the modified file as (Input)_modified.
Any help will be really great.
Thanks
 

10 More Discussions You Might Find Interesting

1. Programming

problem in creating executable for a client program

Hi, I am trying to run simple client server c program in unix.At the compling stage server is creating an executable but the client is not. below is the link to the source codes: http://www.cs.rpi.edu/courses/sysprog/sockets/server.c http://www.cs.rpi.edu/courses/sysprog/sockets/client.c ... (2 Replies)
Discussion started by: konas
2 Replies

2. UNIX for Dummies Questions & Answers

creating executable for every C file

hello Folks, once we compile any C code on Linux, we run the code using "./a.out".. but can we have an executable for every program so that we can run the code directly without compiling the code every time. just run the executable and get the output! Thanks! (7 Replies)
Discussion started by: compbug
7 Replies

3. OS X (Apple)

What's The Easiest Route To Creating A Unix Executable File for Terminal?

I've seen the executable open in the application OmniOutliner, can I create an executable with this app? I'd like to be able to create the unix executable and insert it into terminal, but I'm not sure if the Omni app will allow me to create it. Any one have any ideas or possibly familiar with... (10 Replies)
Discussion started by: unimachead
10 Replies

4. UNIX for Dummies Questions & Answers

need help making a script executable

making a script in vi to create a shell script called wherearethey by entering the following script: echo -n "Who are you looking for: "read userif then list=`w | grep $user | cut -c19-30` if then echo "The user $user is logged in from $list" else echo "The user $user is not logged in... (3 Replies)
Discussion started by: curtner
3 Replies

5. Shell Programming and Scripting

help needed with creating challenging bash script with creating directories

Hi, Can someone help me with creating a bash shell script. I need to create a script that gets a positive number n as an argument. The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies

6. Shell Programming and Scripting

Script executable only for one person at same time

Hi My question: Is there a way to lock a script if its already running for other users? Like if i want to start a script, that is running by another user, there will be a message: Hey, you cant start the script because its running by another user, try it later. my idea was that the... (10 Replies)
Discussion started by: DarkSwiss
10 Replies

7. UNIX Desktop Questions & Answers

creating an executable file from shell scripts

Hi Friends, I have a shell script which does some operations etc, would it be possible to create an executable file out from this shell script? meaning the executable file is not editable, thus the source code will not be visible to other users for copyright reasons. Please help, thanks! (1 Reply)
Discussion started by: kokoro
1 Replies

8. Shell Programming and Scripting

How to produce a executable Oracle script from bash script?

Hi here's my code ${ORACLE_HOME}/bin/sqlplus /nolog <<!EOF --step 5 create db script start set feedback off set heading off set echo off conn / as sysdba spool ${ORACLE_SID}_db_link.sql SELECT 'CREATE '||DECODE(U.NAME,'PUBLIC','public ')||'DATABASE LINK '||CHR(10)... (2 Replies)
Discussion started by: jediwannabe
2 Replies

9. OS X (Apple)

Creating An Executable On The Fly...

Hi all... Had an idea tonight which could really enhance shell scripting for me. Yes I am aware there could be difficulties but...... Creating a C script inside the shell script to do a task, (a simple text print to stdout in this example), compiling it on the fly, making sure it is... (4 Replies)
Discussion started by: wisecracker
4 Replies

10. Shell Programming and Scripting

Making any script executable

Hi all, I'm new to Unix so just wanted some help. I've been self learning and came accross a question online that I was trying. It is to make any shell script executable, the name of the file is to be made executable. I would use nano and type in something like #! /bin/bash Chmod +x... (4 Replies)
Discussion started by: HelenaR
4 Replies
FORMS(3)						   BSD Library Functions Manual 						  FORMS(3)

NAME
form_driver -- form library LIBRARY
Curses Form Library (libform, -lform) SYNOPSIS
#include <form.h> int form_driver(FORM *form, int request); DESCRIPTION
The form_driver() is the heart of the forms library, it takes commands in the request parameter that is either a request to the driver to perform some action or is a character to be inserted into the current field. The form driver will attempt to insert any printable character passed to it into the current field. This may or may not succeed depending on the state of the current field. If the character passed is not printable then the driver attempts to process it as a driver request. If the character passed is not a valid request then the driver will return an unknown command error. PARAMETERS
The forms driver recognizes the following requests: REQ_NEXT_PAGE Change to the next page in the form. REQ_PREV_PAGE Change to the previous page in the form. REQ_FIRST_PAGE Select the first page in the form. REQ_LAST_PAGE Go to the last page in the form. REQ_NEXT_FIELD Move to the next field in the form field array. REQ_PREV_FIELD Move to the previous field in the form field array. REQ_FIRST_FIELD Go to the first field in the form field array. REQ_LAST_FIELD Go to the last field in the form field array. REQ_SNEXT_FIELD Move to the next sorted field on the form. REQ_SPREV_FIELD Move to the previous sorted field on the form. REQ_SFIRST_FIELD Go to the first field in the sorted list. REQ_SLAST_FIELD Move to the last field in the sorted list. REQ_LEFT_FIELD Go one field to the left on the form page. REQ_RIGHT_FIELD Go one field to the right on the form page. REQ_UP_FIELD Go up one field on the form page. REQ_DOWN_FIELD Go down one field on the form page. REQ_NEXT_CHAR Move one char to the right within the field REQ_PREV_CHAR Move one char to the left within the current field. REQ_NEXT_LINE Go down one line in the current field. REQ_PREV_LINE Go up one line in the current field. REQ_NEXT_WORD Go forward one word in the current field REQ_PREV_WORD Go backward one word in the current field. REQ_BEG_FIELD Move the cursor to the beginning of the current field. REQ_END_FIELD Move the cursor to the end of the current field. REQ_BEG_LINE Move the cursor to the beginning of the line in the current field. REQ_END_LINE Move the cursor to the end of the line. REQ_LEFT_CHAR Move the cursor left one character REQ_RIGHT_CHAR Move the cursor right one character REQ_UP_CHAR Move the cursor up one line. REQ_DOWN_CHAR Move the cursor down one line. REQ_NEW_LINE Insert a new line at the current cursor position. REQ_INS_CHAR Insert a blank character at the current cursor position REQ_INS_LINE Open a blank line at the current cursor position. REQ_DEL_CHAR Delete the character at the current cursor position. REQ_DEL_PREV Delete the character to the left of the current cursor position. REQ_DEL_LINE Delete the current line. REQ_DEL_WORD Delete the word at the current cursor position. REQ_CLR_EOL Clear the field from the current cursor position to the end of the current line. REQ_CLR_EOF Clear the field from the current cursor position to the end of the field. REQ_CLR_FIELD Clear the field. REQ_OVL_MODE Enter overlay mode, characters added to the field will replace the ones already there. REQ_INS_MODE Enter insert mode, characters will be inserted at the current cursor position. Any characters to the right of the cursor will be moved right to accommodate the new characters. REQ_SCR_FLINE Scroll the field forward one line. REQ_SCR_BLINE Scroll the field backward one line. REQ_SCR_FPAGE Scroll the field forward one field page. REQ_SCR_BPAGE Scroll the field backward one field page. REQ_SCR_FHPAGE Scroll the field forward half one field page. REQ_SCR_BHPAGE Scroll the field backward half one field page. REQ_SCR_FCHAR Scroll the field horizontally forward one character REQ_SCR_BCHAR Scroll the field horizontally backward one character REQ_SCR_HFLINE Scroll the field horizontally forward one field line. REQ_SCR_HBLINE Scroll the field horizontally backward one field line. REQ_SCR_HFHALF Scroll the field horizontally forward half a field line. REQ_SCR_HBHALF Scroll the field horizontally backward half a field line. REQ_VALIDATION Request the contents of the current field be validated using any field validation function that has been set for the field. Normally, the field is validated before the current field changes. This request allows the current field to be validated. REQ_PREV_CHOICE Select the previous choice in an enumerated type field. REQ_NEXT_CHOICE Select the next choice in an enumerated type field. RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following error values: E_OK The function was successful. E_REQUEST_DENIED The forms driver request could not be fulfilled E_UNKNOWN_COMMAND The passed character is not a printable character and is not a valid forms driver request. E_BAD_ARGUMENT A bad argument was passed to the forms driver. E_INVALID_FIELD The form passed to the driver has no valid attached fields. E_NOT_POSTED The given form is not currently posted to the screen. E_BAD_STATE The forms driver was called from within an init or term function. E_INVALID_FIELD The character passed to the forms driver fails the character validation for the current field. SEE ALSO
curses(3), forms(3) NOTES
Field sorting is done by location of the field on the form page, the fields are sorted by position starting with the top-most, left-most field and progressing left to right. For the purposes of sorting, the fields top left corner is used as the sort criteria. The header <form.h> automatically includes both <curses.h> and <eti.h>. BSD
January 1, 2001 BSD
All times are GMT -4. The time now is 03:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy