CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
automatic fill on tab?

 



bucz3
Novice

Jan 28, 2009, 12:41 AM

Post #1 of 5 (1089 views)
automatic fill on tab? Can't Post

Hello,

is it possible to make a kind of automatic filling in command line run with the script? I mean, for example I have a script SCRIPT that accepts only command line arguments like FOO and BAR. I want, that when in command line I put SCRIPT F and press tab, I will get SCRIPT FOO


seyed
New User

Jan 28, 2009, 2:00 AM

Post #2 of 5 (1085 views)
Re: [bucz3] automatic fill on tab? [In reply to] Can't Post

Im not sure if i understand what you mean, but if you are running it in *nix then it shouldn't matter.
A good example is echo, if you write: echo a (tab) b
then the output would be: a b
Same goes with scripts

main.pl A (tab) B
would be read in as :
$ARGV[0] = A
$ARGV[1] = B

while the tab would be ignored.


(This post was edited by seyed on Jan 28, 2009, 2:31 AM)


bucz3
Novice

Jan 28, 2009, 5:41 AM

Post #3 of 5 (1081 views)
Re: [seyed] automatic fill on tab? [In reply to] Can't Post

you got me wrong,

I meant, for example if you go


Code
/etc/init.d.cron st<tab>


you get


Code
start stop


that what I want to achive, auto filling


FishMonger
Veteran / Moderator

Jan 28, 2009, 6:48 AM

Post #4 of 5 (1075 views)
Re: [bucz3] automatic fill on tab? [In reply to] Can't Post

That auto fill-in feature is part of your shell and it has no idea of what are or are not valid parameters to your Perl script. So the answer to your question is NO.


bucz3
Novice

Jan 28, 2009, 11:11 PM

Post #5 of 5 (1065 views)
Re: [FishMonger] automatic fill on tab? [In reply to] Can't Post

thanks,

I was wondering if there is any silent hidden stealth mode run when I press Tab

unfortunately, no : |

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives