Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Puppy This forum is for the discussion of Puppy Linux.


  Search this Thread
Old 06-11-2014, 04:34 PM   #1
Senior Member
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
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 ?

#  Assemble, link, and run ELF programs using Flat Assembler     Linux Puppy 5.6.0
if [ "${1}" = "" ]
        echo 'No filename passed.'
  echo       'Assembling source code, please wait....'
        fasm $1.asm
Old 06-11-2014, 04:53 PM   #2
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,114

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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, 07:15 PM   #3
Senior Member
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

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


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 03:45 AM
Automating Interactive script soupbone38 Programming 1 04-16-2009 09:50 AM
BASH - How to open an interactive script from a non interactive script..... OldGaf Programming 4 06-29-2008 04:34 PM
shell script in non interactive way googlix Linux - General 6 11-13-2007 09:18 AM
Please help with interactive script moosedaddy Linux - Newbie 3 12-08-2005 09:02 PM

All times are GMT -5. The time now is 12:43 AM.

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