fmli functions?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting fmli functions?
# 1  
Old 10-03-2006
fmli functions?

Hi all

I am trying to create a Form that takes a user entered Directory name and if the Directory does not exist then I create it.

I have managed to set the descriptor done=`mkdir "$F1";update` to make the directory but really require the form done to run a function that will have the steps; Smilie

is directory resident
if not create it
check directory created
display error if not
ensure security set (eg chmod -755 $F1)
display error if not

is it possible to create functions in fmli?

Thanks Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies

2. Shell Programming and Scripting

i think i need functions ?

Hi, im making a little script but need some help Code i have so far is read -p 'Bot Nickname:' ecnick read -p 'Bot Username:' ecusername read -p 'Bot Realname:' ecrealname read -p 'Your Email:' ecemail echo '' echo Your bots nickname is set to $ecnick echo Your bots username is set to... (2 Replies)
Discussion started by: Gemster
2 Replies

3. Shell Programming and Scripting

functions

I have korn shells where I want to create a function passing $1 to a function , determine my $STAT_ENV value, set the paths and return the paths for STATSH,STATPRM,STATSQR,STATSQL,STATCTL TO BE USED IN THE UNIX SCRIPT THE CALLED THE fucnction in the first place. Can someone tell me the best... (2 Replies)
Discussion started by: TimHortons
2 Replies

4. Programming

FMLI on Suse

Anyone knows a FMLI package for Suse? I have bunch of screens, menu and lists on FMLI and, as much as I know, There is no FMLI facility on Suse. Any better suggestion than converting all of them in Shell script? :confused: (2 Replies)
Discussion started by: Marcos Brito
2 Replies

5. Shell Programming and Scripting

fmli "Form" question

Suppose I have a Form with 5 fields. 2 of these fields have their imput limited by a rmenu choice. e.g. field1 and field2. The rmenu choices of field2 are also limited by the choice made for field1. name=filed1 rmenu=vary { a b c d } name=field2 rmenu=vary { `script $F1` } ... (2 Replies)
Discussion started by: sb008
2 Replies

6. UNIX for Advanced & Expert Users

using fmli to create menu's

I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item. the syntax I am using to create the dynamic Menu is menu="$ARG1 Host names" `cat Hosts.data | regex '^(''.*)$0$' ' name="$m0" action=open Menu.Login.mnu... (0 Replies)
Discussion started by: craigmckeeman
0 Replies

7. Shell Programming and Scripting

using fmli to create menu's

I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item. the syntax I am using to create the dynamic Menu is menu="$ARG1 Host names" `cat Hosts.data | regex '^(''.*)$0$' ' name="$m0" action=open... (2 Replies)
Discussion started by: craigmckeeman
2 Replies

8. Shell Programming and Scripting

Regarding functions

Hi, I have a function or script like this. show() { echo "Hi" } | tee -a log show This creates a logfile and prints Hi in it. Now when I try to do the same for sql like this: show() { sqlplus -s scott/tiger<<! select * from details; ! } | tee -a log show Then it gives me a... (2 Replies)
Discussion started by: sendhilmani
2 Replies

9. Shell Programming and Scripting

Fmli Signal/trap

Does anyone know how to program signals in fmli? My fmli script goes in loop when the telnet session is closed. When I start the script from the prompt the issue do not happen. But when it is started by the login process it hags. That's why I want to program the SIGHUP to exit/finish the script.... (0 Replies)
Discussion started by: Marcos Brito
0 Replies

10. Shell Programming and Scripting

using CD command in fmli

I was not able to use "cd" command in fmli....can anyone help ? (1 Reply)
Discussion started by: Claude
1 Replies
Login or Register to Ask a Question
gnomevfs-mkdir(1)						   User Commands						 gnomevfs-mkdir(1)

NAME
gnomevfs-mkdir - make a new directory at a VFS location SYNOPSIS
gnomevfs-mkdir -p URI DESCRIPTION
gnomevfs-mkdir is obsolete. It has been superseded by gvfs-mkdir. See gvfs-mkdir(1). gnomevfs-mkdir makes a new directory at a URI location that supports the creation of new directories. OPTIONS
The following options are supported: -p Create parents of the directory if needed OPERANDS
The following operands are supported: URI Specifies the location of the new directory in standard URI format. EXAMPLES
Example 1: Making a New Directory in the Home Directory example% gnomevfs-mkdir file:///home/user/newdir ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: NLSPATH. EXIT STATUS
The exit value 0 is returned regardless of success or failure. FILES
The following files are used by this application: /usr/bin/gnomevfs-mkdir Executable to make a new directory at a VFS location ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-vfs | +-----------------------------+-----------------------------+ |Interface stability |Obsolete Volatile | +-----------------------------+-----------------------------+ SEE ALSO
gnomevfs-cat(1), gnomevfs-copy(1), gnomevfs-info(1), gnomevfs-ls(1), gvfs-mkdir(1), attributes(5), environ(5) NOTES
Written by Stephen Browne, Sun Microsystems Inc., 2004. SunOS 5.11 14 May 2008 gnomevfs-mkdir(1)