Not the answer you're looking for? Quote the variable: if [ -d "$INPUT" ] > then > ls $INPUT See previous comment. > else > echo "$INPUT Is Not A Directory or unreadable" > fi > fi So in the first script, the second read line is reading the echo line that comes after it. Is it worth sending a manned mission to a black hole? this contact form
oriUlr：http://stackoverflow.com/questions/25977916/read-p-returns-read-no-query-process-using-korn-shell-ksh ------分隔线---------------------------- 上一篇：linux - Read csv for file first column and search for directory on filesystem identical to the values in first column using UNIX shell script 下一篇：openstack成长之旅 - 3 image创建及批量创建的脚本详解 I thought those were not allowed? 3) '#!/usr/bin/env bash' is probably better. 4) Which bash version? (I tested with bash 4.1.10 on FreeBSD and got no errors) –Hennes Feb 22 '13 Search or use up and down arrow keys to select an item. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers http://stackoverflow.com/questions/25977916/read-p-returns-read-no-query-process-using-korn-shell-ksh
Find More Posts by jamescondron 03-16-2010, 06:25 AM #6 lupusarcanus Senior Member Registered: Mar 2009 Location: USA Distribution: Arch Posts: 1,022 Blog Entries: 19 Original Poster Rep: Quote: Originally I think the reason for the error in your second script is because you didn't put #!/bin/bash at the beginning of the script. Internet browsing is How to read a file AND make a query at each line? - Stack Overflow one of the common processes that attracts the existence of these errors. The loop is a do-done loop using the "break" command to exit.
Thanks for explaining and making the code work! –Shivanand Nov 20 '13 at 14:32 add a comment| up vote 0 down vote Consider the first script: echo "You are in test1.sh" penguiniator View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by penguiniator View Blog 03-16-2010, 07:49 AM #8 jamescondron Member Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles Register Search Search Forums Advanced Search Search Tags Search LQ Wiki Search Tutorials/Articles Search Password Linux - Newbie This Linux forum is for members that are new to Linux.
Trouble-shooting this error is more than just restarting your computer or pressing the ESC control. What is this game from this promotional image for joysticks? Thanks! Am I right to think this homework problem on counting triangles in a grid is improperly set out?
echo "You are now in a here-document" read -p "Enter some more text : " text2 echo "You also entered : $text2" echo "End of the here-document" ! I've given the answer to @scott because of the explanation of why this is not functioning, but the snippet you've given me works perfectly. –Nick Tomlin Feb 22 '13 at 22:05 How come the Sun's gravity can hold distant planets in orbit, but cannot rip humans off Earth? Who is the tallest?
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. weblink You're now being signed in. But the variable $text2 is set in the child shell process. Thanks for replying. –Andrew Grady Sep 22 '14 at 17:43 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote In Ksh you can use this format:
Why is Cuba still leasing Guantanamo Bay to the US? Could you do another for me??? Thanks for your informative reply. navigate here Doing this manually now.
linux bash shell share|improve this question asked Nov 20 '13 at 8:00 Shivanand 42117 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted When you're The most typical reason for this is when you are using an application that uses a huge memory space. It is not needed it you run it in any other way or if you put it in an startup script.
They also confuse since their give the impression that you use bash when you use zsh). –Hennes Feb 22 '13 at 20:48 @NickTomlin Do you know how to make He's working at the moment to attempts (not easy) to backport the "possible solution" at this "coprocess" problem from the 2007 version to the 2006 version that we ship now. Code: [email protected]:~/Escritorio$ bash shell.sh FINDING THE FILES IN THE CURRENT PATH : camel.ico THE FILE NAME IS' camel.ico 'PLEASE COMFIRM with Y OR N : Y ./raes/camel.ico [email protected]:~/Escritorio$ BASH it!
It will always be a good thing if you know how to troubleshoot such computer errors. leopard Last edited by lupusarcanus; 03-16-2010 at 05:37 AM. Loading... http://compsyscon.com/linux-error/linux-error-unknown-connection.html current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.
This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie How do I make my BASH script yes/no user input query terminate with 3 invalid inputs? share|improve this answer answered Nov 20 '13 at 8:10 Barmar 280k24134221 Putting the end-marker in quotes <<'!' while using /dev/tty for input solved the problem! linux - Unix (ksh) script to read file, parse and output certain columns only how to read a list of current running process in linux using C++ linux - Read csv
katrena ferfoglia replied Sep 25, 2007 thanks that was a great help. All Rights Reserved. Is it worth sending a manned mission to a black hole? Here is my current code:- Code: ...
share|improve this answer answered Nov 20 '13 at 8:06 Jonathan Leffler 447k62519834 I didn't understand.. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. The shebang (#!)interpreter` line is only needed if you want to execute the file with ./read.sh. causticmtl Programming 5 07-13-2003 10:59 PM All times are GMT -5.