LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2007, 12:20 PM   #1
jrfk2
LQ Newbie
 
Registered: Jan 2006
Posts: 24

Rep: Reputation: 0
configure bash to echo out the command entered?


is there any way to configure bash to echo out the command entered?

I'm using an app to interface with bash when I send commands in and bash send back its reponse to the command, but i'd like basj to send back the command entered as part of its response ..

-v & -x options give way too much info
 
Old 01-18-2007, 01:03 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I don't know if it can do that (very well could do), but anyway if you can alter the program (i.e. a script), you could just make it read the last line from .bash_history which has the last commands.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
(bash) echo "#!/bin/bash" event not found - trying to generate profiles automatically jimieee Programming 9 05-03-2006 11:24 AM
Turning echo off in bash slomek Programming 1 03-01-2006 12:38 PM
Bash Script, no new line for echo command jorisb Linux - General 5 11-05-2005 01:08 AM
Bash Scripting - echo command question gbhil Programming 2 04-27-2005 08:27 PM
Cannot login since I entered chmod command? gopikrish Linux - Software 3 08-20-2004 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:46 PM.

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