Fedora Linux Support Community & Resources Center
  #1  
Old 15th October 2008, 09:27 PM
DanSandberg Offline
Registered User
 
Join Date: Dec 2007
Posts: 21
Interactive Scripts versus One-liners

Hi All,

I have a program for which I'm trying to write an installer. I'm up to the part where the program's files are all in the correct place and the program is executed by the command 'mp' in the terminal. The first time I run the program I need to run it with the first argument being the serial number. The program displays registration information and asks the user to hit return, then type yes and hit return again.

For the purpose of coding the graphical installer, I'd like to execute this action all as one line. I tried:

mp SERIAL# ; ; yes

but this did not work. Is there another way to do what I'm trying to do?
Reply With Quote
  #2  
Old 15th October 2008, 09:40 PM
bee Offline
Banned
 
Join Date: Jun 2008
Posts: 1,315
hi.
i dunno if what you are asking is possible, i would try with:
Code:
echo -ne "\nyes\n" | mp SERIAL
bye!
Reply With Quote
  #3  
Old 16th October 2008, 02:50 AM
DanSandberg Offline
Registered User
 
Join Date: Dec 2007
Posts: 21
here's what I got


Quote:
? FORTRAN Runtime Error:
? Attempt to read past end of file
? READ(UNIT=5,...
thanks for the help though. I guess the answer lies within the compiler (which is RealBasic) so hopefully someone on that forum can help. Thank you for your time.
Reply With Quote
Reply

Tags
interactive, oneliners, scripts, versus

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create an interactive map ColonelPenguin Using Fedora 0 23rd May 2008 08:39 PM
interactive ai software uptonm Wibble 0 18th July 2007 04:19 AM
Interactive Boot crazygeek Using Fedora 0 25th August 2006 12:26 PM
Interactive Startup PSY0NIC Installation, Upgrades and Live Media 8 21st April 2006 10:26 PM


Current GMT-time: 20:45 (Friday, 18-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat