YNT: read line from terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks very much it's work

	-----Özgün İleti----- 
	Kimden: redhat-list-bounces@xxxxxxxxxx bu kişinin yerine Krishnaprasad_K@xxxxxxxx 
	Gönderilmiş: Per 19/04/2007 14:51 
	Kime: redhat-list@xxxxxxxxxx 
	Bilgi: 
	Konu: RE: read line from terminal
	
	

	Hi,
	
	        You can store the result of the particular command to a variable in ur bash script. May be the below approach may help u.
	
	value=`(echo password ; echo password) | grub-md5-crypt 2> err | grep -iv pass`
	echo $value
	
	        This may help ur purpose
	
	Regards,
	Krishnaprasad
	-----Original Message-----
	From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Koray Sonmez
	Sent: Thursday, April 19, 2007 5:20 PM
	To: General Red Hat Linux discussion list
	Subject: read line from terminal
	
	Hi,
	
	i'm writing a script with bash and in my script i try to read output of  /sbin/grub-md5-crypt command. does anybody know how can i read output or line from terminal.
	
	thanks,
	
	koray
	
	
	--
	redhat-list mailing list
	unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
	https://www.redhat.com/mailman/listinfo/redhat-list
	

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux