LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices



Reply
 
Search this Thread
Old 06-11-2014, 05:34 PM   #1
Fixit7
Member
 
Registered: Mar 2014
Posts: 316

Rep: Reputation: 1
Script that is interactive outside of a console


I am looking for a way to make script files more interactive.

I don't want to run it from a console.

I would like this script to prompt me for a filename and finish up.

Can it be done ?

Code:
#!/bin/bash
# fas.sh  Assemble, link, and run ELF programs using Flat Assembler     Linux Puppy 5.6.0
#
#
if [ "${1}" = "" ]
then
        echo 'No filename passed.'
else
  echo       'Assembling source code, please wait....'
        fasm $1.asm
        ./$1      
fi
exit
 
Old 06-11-2014, 05:53 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,217

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
not sure what you are looking for but the read command is useful for interactive scripts.

if you dont want to have to run them from terminal you can look into nautilus scripts (but i'm not sure if gnome-3 supports them).

also zenity can be used to add gui widgets to bash scripts.
 
Old 06-13-2014, 08:15 PM   #3
Fixit7
Member
 
Registered: Mar 2014
Posts: 316

Original Poster
Rep: Reputation: 1
thanks, zenity is a nice program.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Daemon with interactive console znatok Linux - Software 9 12-23-2013 04:45 AM
Automating Interactive script soupbone38 Programming 1 04-16-2009 10:50 AM
BASH - How to open an interactive script from a non interactive script..... OldGaf Programming 4 06-29-2008 05:34 PM
shell script in non interactive way googlix Linux - General 6 11-13-2007 10:18 AM
Please help with interactive script moosedaddy Linux - Newbie 3 12-08-2005 10:02 PM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration