Sponsored Content
Top Forums Shell Programming and Scripting vi command -output garbage char in HP-UX Post 302134237 by jambesh on Thursday 30th of August 2007 03:35:03 AM
Old 08-30-2007
vi command -output garbage char in HP-UX

Hi all ,

I am new to HP-UX flavour of unix.
i am issuing simple "vi" comand on the command prompt it is showing me some garbage character in command prompt itself ..unreadable format.
I tried opening an existing file using the vi editor --and same thing
happened -saw some garbage character.

Finally i try with man vi in the command prompt and the out put was again horrible.

Can any body help me the possible cause. i check the .profile but seems path were ok.

HERE IS A SIMPLE OUT PUT FROM VI COMMAND IN THE COMMAND PROMOPT ---

$vi
29yoC1AOC~6476C768
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing Garbage output

I am using following code to read myfile.ddl line by line. But the thing is it is printing lot of garbage which are the names of the files and directories in which myfile.ddl is present. Kindly refine the code so that only myfile.ddl contents are only read LOGFILE="logfile.txt"... (4 Replies)
Discussion started by: skyineyes
4 Replies

2. Shell Programming and Scripting

Remove Garbage Output

Hello Friends, In a script i m using different temporary file and i remove them in the end. During script execution i have some garbage output which is not required. For example: Garbage Output ++ rm temp_out temp_a temp_b temp_c ++ rm Filter1 Filter2 Script : Even i am redirecting rm... (7 Replies)
Discussion started by: Danish Shakil
7 Replies

3. UNIX for Dummies Questions & Answers

Command display output on console and simultaneously save the command and its output

Hi folks, Please advise which command/command line shall I run; 1) to display the command and its output on console 2) simultaneous to save the command and its output on a file I tried tee command as follows; $ ps aux | grep mysql | tee /path/to/output.txt It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies

4. Programming

C++: No output for Char* when on AIX. Worked on Linux

Hi All, I have a script (attached) that was working fine on Linux. I compiled it there using g++ CrncyFmt.cpp -o CrncyFmt.o When I ran it there using eg. CrncyFmt.o 2343.565 2 I get as expected: CharOut = " 2,343.57" Now we have moved to our test box which is AIX and I... (11 Replies)
Discussion started by: Leedor
11 Replies

5. UNIX for Dummies Questions & Answers

getting garbage values in "df-k" output in solaris

Hi, I am running a command "df -k" to check the HDD utilization i am getting some garbage values in output of the command. Output coming Filesystem kbytes used avail capacity Mounted on /dev/dsk/c1t0d0s7 113197651... (0 Replies)
Discussion started by: varunksharma87
0 Replies

6. Shell Programming and Scripting

getting garbage in the output file of shell script

Hi Everyone, The problem is that I am getting messages other than the script in the current log file. Ideally the script should contain only the messages that are redirected to the log file. How to remove these unwanted data from the log file. Please help if you have any idea how to remove the... (0 Replies)
Discussion started by: vsachan
0 Replies

7. Shell Programming and Scripting

getting garbage in the output file of shell script

Hi, I wrote one shell script and I am calling 1 sql script inside shell script. When I am running the shell script, I am getting actual data as well as garbage data in the output file. Why the garbage is there in the log file. Please help if anybody having any ides. Script: ------- ... (2 Replies)
Discussion started by: vsachan
2 Replies

8. Shell Programming and Scripting

Ignore garbage output file

Hi All, below is my shell script #!/bin/sh set -x echo "test for multiple values" UIDPSWD=`cat /projects/feeds/twest/uidpswd` echo "oracle connection test" full=/projects/feeds/twest/test_file values=`cut -d'|' -f1 $full|sed -e "s/.*/'&'/" -e 's/$/,/g' -e '$s/,$//'` sqlplus $UIDPSWD... (2 Replies)
Discussion started by: krupasindhu18
2 Replies

9. Shell Programming and Scripting

Insert title as output of command to appended file if no output from command

I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place. What I need The following command is placed at the prompt: TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
PROMPTER(1)							     [nmh-1.5]							       PROMPTER(1)

NAME
prompter - prompting editor front-end for nmh SYNOPSIS
prompter [-erase chr] [-kill chr] [-prepend | -noprepend] [-rapid | -norapid] [-doteof | -nodoteof] file [-version] [-help] DESCRIPTION
Prompter is an editor front-end for nmh which allows rapid composition of messages. This program is not normally invoked directly by users but takes the place of an editor and acts as an editor front-end. It operates on an RFC-822 style message draft skeleton specified by file, normally provided by the nmh commands comp, dist, forw, or repl. Prompter is particularly useful when composing messages over slow network or modem lines. It is an nmh program in that it can have its own profile entry with switches, but it is not invoked directly by the user. The commands comp, dist, forw, and repl invoke prompter as an editor, either when invoked with -editor prompter, or by the profile entry "Editor: prompter", or when given the command edit prompter at the "What now?" prompt. For each empty component prompter finds in the draft, the user is prompted for a response; A <RETURN> will cause the whole component to be left out. Otherwise, a `' preceding a <RETURN> will continue the response on the next line, allowing for multiline components. Continua- tion lines must begin with a space or tab. Each non-empty component is copied to the draft and displayed on the terminal. The start of the message body is denoted by a blank line or a line of dashes. If the body is non-empty, the prompt, which isn't written to the file, is --------Enter additional text or (if -prepend was given) --------Enter initial text Message-body typing is terminated with an end-of-file (usually CTRL-D). With the -doteof switch, a period on a line all by itself also signifies end-of-file. At this point control is returned to the calling program, where the user is asked "What now?". See whatnow (1) for the valid options to this query. By using the -prepend switch, the user can add type-in to the beginning of the message body and have the rest of the body follow. This is useful for the forw command. By using the -rapid switch, if the draft already contains text in the message-body, it is not displayed on the user's terminal. This is useful for low-speed terminals. The line editing characters for kill and erase may be specified by the user via the arguments -kill chr and -erase chr, where chr may be a character; or ` nn', where "nnn" is the octal value for the character. An interrupt (usually CTRL-C) during component typing will abort prompter and the nmh command that invoked it. An interrupt during mes- sage-body typing is equivalent to CTRL-D, for historical reasons. This means that prompter should finish up and exit. The first non-flag argument to prompter is taken as the name of the draft file, and subsequent non-flag arguments are ignored. FILES
$HOME/.mh_profile The user profile /tmp/prompter* Temporary copy of message PROFILE COMPONENTS
prompter-next: To name the editor to be used on exit from .B prompter Msg-Protect: To set mode when creating a new draft SEE ALSO
comp(1), dist(1), forw(1), repl(1), whatnow(1) DEFAULTS
`-prepend' `-norapid' `-nodoteof' CONTEXT
None HELPFUL HINTS
The -rapid option is particularly useful with forw, and -noprepend is useful with comp -use. The user may wish to link prompter under several names (e.g., "rapid") and give appropriate switches in the profile entries under these names (e.g., "rapid: -rapid"). This facilitates invoking prompter differently for different nmh commands (e.g., "forw: -editor rapid"). BUGS
Prompter uses stdio(3), so it will lose if you edit files with nulls in them. MH.6.8 11 June 2012 PROMPTER(1)
All times are GMT -4. The time now is 10:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy