Computing.Net > Forums > Unix > RE:howto add ctrl char to unix scri

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

RE:howto add ctrl char to unix scri

Reply to Message Icon

Name: peter marshall
Date: May 8, 2003 at 07:37:35 Pacific
OS: unix
CPU/Ram: ?/?
Comment:

thank you very much for your reply. I actually tried what you are saying after I posted the message, but it still is not working right :(
this is what I have:
___________________________________________
#!/bin/sh (I have also tries using bash)
mail e48f4@unb.ca
(embeded CR)
echo Subject: Fill out time sheet
(embeded CR)
echo Dont forget to fill out
(embeded CR)
(embeded ctrl D)

--------------

It works if I type line by line at the prompt, but I can't get it to work in the script. I dont get an error, but it does nnot finisth, and I have to control C to exit.

thanks again for your input.

Peter

PS. I use vi ( i telnet to a unix box)



Sponsored Link
Ads by Google

Response Number 1
Name: LANkrypt0
Date: May 8, 2003 at 07:59:21 Pacific
Reply:

If you have access to use joe (editor) this becomes easy to do.
try typing joe at your command line see if it opens up.

If so, all you need to do to use ctrl chars is use ` then the letter you want so you would type `d and that should do it.

The VI solution posted before should work, but eh, I dont like vi that much, thats why I use joe :)


0
Reply to Message Icon

Related Posts

See More


I need some advise on lea... Help with Bourne Shellscr...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: RE:howto add ctrl char to unix scri

howto add ctrl chars to bash script www.computing.net/answers/unix/howto-add-ctrl-chars-to-bash-script/4994.html

Adding another OS to Unix on one HD www.computing.net/answers/unix/adding-another-os-to-unix-on-one-hd/3695.html

Add route permanently in Unix www.computing.net/answers/unix/add-route-permanently-in-unix/4169.html