The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
25 views

Why is “echo” so much faster than “touch”? [migrated]

I'm trying to update the timestamp to the current time on all of the xml files in my directory (recursively). I'm using Mac OSX 10.8.5. On about 300,000 files, the following echo command takes 10 ...
1
vote
1answer
27 views

How to generate a signature with a launchd plist? [closed]

Is it possible to implement the following shell script completely as a launchd plist to generate a signature with timestamp in the StandardErrorPath / StandardErrorPath files? #!/bin/sh echo "Hi, ...
0
votes
3answers
89 views

What is the use of echo canceler in ISDN boards if all my endpoints have echo canceling?

Most digital telephony boards (BRI/PRI) have optional hardware echo canceler presented as alternative to the cpu intensive software echo canceling available in Asterisk and FreeSWITCH. I'm ...
0
votes
2answers
172 views

Strip out the 'n' \ new line out of the echo to a file [closed]

I have a bash script that pulls a bit of text from an external MySQL database. Most of the times it are 4 lines, each one on his own line. This text (in total) has to be placed into a file. The script ...
0
votes
1answer
179 views

Automatically close netcat connection

I am executing the following command from a script: echo '{"hostUp": true}' | sudo /usr/local/bin/netcat localhost 8001 However, the netcat client stays open indefinitely. How can I close the ...
4
votes
2answers
164 views

supress expansion of * in echo

I am working on a script which dynamically executes some queries on daily basis. These queries are coming from a table in the database. Here is the sample output of the query table: ...
4
votes
1answer
224 views

Getting error “Invalid command 'echo'…” when restarting apache when trying to use SSLPassPhraseDialog

Using a solution to another answer, I added the following to my apache config: SSLPassPhraseDialog exec:/path/to/passphrase-script And in that script, I placed this: #!/bin/sh echo "put the ...
0
votes
2answers
74 views

echo without newline

-bash-4.1# cat output "/root/mail/domain.com/root/Archive Dir.2012.04 April" for i in `cat output`; do echo "$i"; done "/root/mail/domain.com/root/Archive Dir.2012.04 April" I want them on a ...
1
vote
1answer
80 views

echo + append string + linux

please advice how it can be - ( this action was on linux machine ) why the string - "append" that I add with echo is after the line "spb_IP=172.17.100.122" and not under the line - ...
0
votes
1answer
73 views

How do I use the excape characters properly in csh's builtin echo command?

I'm trying to build my fstab during install with a script, so I want to have something like this: printf '# Device\t\tMountpoint\tFSType\tOptions\t\tDump\tPass#' >> /mnt/etc/fstab printf ...
1
vote
1answer
79 views

How do I use a shell builtin command rather than the system command?

I'm specifically asking about FreeBSD. I am using the default /bin/csh as my shell. There is a binary version of echo at /bin/echo, and there is an echo command built into the shell. The system ...
2
votes
2answers
810 views

need a live UDP echo Server IP and port

I require to test my UDP program using echo server. I have tested this application in LAN but now I require it to test it in Internet. Is there and globally recognize freely available well known ...
1
vote
1answer
173 views

How to feed the variable with end of lines to standard input of other application in bash?

Is there a (simple) way to feed variable with end of lines to other program in BASH? Consider example: flist=$(ls -l) echo $flist echo will replace all end of lines with spaces, so my output will ...
0
votes
2answers
298 views

Issues with echo commands?

I run this script as quanta suggest me #!/bin/bash EDATE=$(tail -1 a | awk '{ print substr($4, 2, length($4)) }') EEPOCH=$(date -d "$(echo "$EDATE" | awk 'BEGIN { FS = "[/:]"; } \ { ...
2
votes
3answers
1k views

Bash Script Echo -n

I am writing a bash script, and I want to echo a string, but without a newline automatically added to the end. Reading the man page it says the flag is -n. The problem is, when I do: echo -n "My ...
1
vote
2answers
46 views

echo with each parameter on its own line

I would like an output similar to ls -1d, but I don't want to check if each file exists. I would prefer to just list the files. I could use echo, but echo only puts a space between files. How can I ...
0
votes
1answer
241 views

How to control echo reply source IP in suse linux

The Client, running Suse 10. The Server, also running Suse10, and is a Cluster with a float IP. Now there is a problem about the echo communication: Client send echo request server's float IP, and ...
1
vote
2answers
1k views

Lighttpd broken when serving from Virtualbox shared folder

I've got a lighttpd web server set up on a Debian 6 guest in Virtualbox 4. I've got the www directory in a virtualbox shared folder, so that I can develop a website in the Windows host. My problem is ...
0
votes
2answers
799 views

diable display command output on screen?

when i write bash the output appear on th screen ....i don't want to display the command and the command output on screen how i can do it ?
0
votes
2answers
945 views

Strange problem with crontab and echo

$ echo -e "test1\ntest2" > logfile $ echo -e "test1\ntest2" >> logfile $ cat logfile test1 test2 test1 test2 $ rm logfile $ crontab -e * * * * * echo -e "test1\ntest2" >> logfile $ ...