Sponsored Content
Special Forums Windows & DOS: Issues & Discussions DOS Equivalent of UNIX Command Post 302746455 by Ste_Moore01 on Wednesday 19th of December 2012 10:41:32 AM
Old 12-19-2012
Thanks for the help.

Quote:
Originally Posted by joeyg
In DOS, you can
Code:
copy con: testfile.txt

then type at the screen, and everything will be sent to the file until you do a CTRL-z to end the copying

or, maybe
Code:
echo abcdef >> testfile.txt

will append the abcdef to the end of the existing testfile.txt
Unfortunately, this isn't exaclty what I meant.

What I wanted was to be able to use VB6 to open a command prompt (which I've managed) and then telnet onto a server by sending keypresses to the command prompt (which I've also managed) and I wanted the output for the command prompt to be sent to a file on my local machine.

I thought the best way to do this would be an equivalent of << in Unix

I have however, managed to get around it by running my telnet commands on the server and sending its output to a file on the server and then using Inet to FTP the file to my local computer.

Thanks to everyone.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question about DOS versus Unix Command?

Okay here is a DOS comparison. When I search for a file in DOS and I was not sure what directory it was in then I would put dir /s/o/p filename the s would tell it to look in every directory including subs, the o would sort it alphabetically and the p would limit the display to one page at a... (1 Reply)
Discussion started by: wmosley2
1 Replies

2. Windows & DOS: Issues & Discussions

SQL Spool equivalent command in DOS

This question maybe in the wrong category but I'm posting here due to urgency. In DOS is there a command to perform a similar function to spool command in SQL or Script command in UNIX? I want to print all command line output to a file but I don't want to use the echo command for each line. ... (2 Replies)
Discussion started by: stevefox
2 Replies

3. UNIX for Advanced & Expert Users

Command equivalent to DOS mode for SCO 5.0.6

I need to set the serial port attributes to 9600,7,E,1 in order to read and write data to it from within a Foxpro program. Unfortunately there is no function in Foxpro to set the line attributes, only open. close read and write. Stty only works on the stdout and stdin in this release, and the... (3 Replies)
Discussion started by: jgt
3 Replies

4. UNIX for Advanced & Expert Users

Equivalent command for setlocal in Unix

Hi all, Is there any command in unix equivalent to setlocal in windows. setlocal command is really useful in restoring local environment variables in windows. Thanks, Sonal. (7 Replies)
Discussion started by: sonaluphale
7 Replies

5. UNIX for Dummies Questions & Answers

Unix equivalent of DOS set

Hi all, what is the equivalent command of the DOS set that lists all the environment variable and their values? Xavier. (3 Replies)
Discussion started by: xxavier
3 Replies

6. Windows & DOS: Issues & Discussions

what is the DOS equivalent of alias command?

how do we create aliases to commands in dos? thanks (9 Replies)
Discussion started by: milhan
9 Replies

7. Shell Programming and Scripting

Windows command shell equivalent in Unix

In Windows we use cmd.exe \c as the command SHell What is its equivalent in UNIX ? Thanx for all your help. (10 Replies)
Discussion started by: simonsimon
10 Replies

8. Shell Programming and Scripting

Command for unix to dos conversion

Dear All Could you please advice how do we convert a unix file to dos I know one command,ux2dos, which somehow does not work to give desired output Inputs on this is appreciated Thanks, Suresh (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

9. Windows & DOS: Issues & Discussions

dos/intel unix command equivalent

In Unix I can use command line to do a find for files older than so many days and remove them. I can also capture the date to see if its a saturday and do something different. Are there any dos/intel command line equivalent commands to do this on a windows 2003 server? This is from an... (6 Replies)
Discussion started by: MizzGail
6 Replies

10. Shell Programming and Scripting

PHP Equivalent of the unix command

Hi Can any one please let me know which will be the PHP equivalent of the below Unix statement, curl -H "Content-type: application/json" -H "Accept: application/json" --data-binary '{"text" : "how to check the temperature?"}' -H "X-JaskUid:111" -X POST "www.google.com/res"'Thanks in advance!! ... (0 Replies)
Discussion started by: vidhyaS
0 Replies
gedit(1)							   User Commands							  gedit(1)

NAME
gnome-text-editor, gedit - Limited functionality text editor for the GNOME desktop. SYNOPSIS
gnome-text-editor [--debug [-section]] [gnome-std-options] [--help] [--new-document] [--new-window] [--quit] [filename] gedit [--debug [-section]] [gnome-std-options] [--help] [--new-document] [--new-window] [--quit] [filename] DESCRIPTION
The gnome-text-editor application is a text editor for the GNOME desktop. The application is also called gedit. You can use gedit as a shorter command to start the application. The application enables you to edit multiple documents at the same time. Each document resides in a specific tabbed section of the application window. When you start the application from the command line, you can specify one or more filenames. When gedit starts, the application opens all files that you list on the command line. OPTIONS
The following options are supported: --debug [-section] Run gedit in debug mode. In debug mode all the functions that are being called dump the function names to the con- sole. You can specify the following sections for debugging: o window o commands o document o file o plugins o prefs o print o search o undo o view o recent Run gedit --help for more information. gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information. --help Print the command line options. --new-document Create a new top-level document or tabbed section in an existing instance of gedit. --new-window Create a new top-level window in an existing instance of gedit. --quit Quit an existing instance of gedit. EXTENDED DESCRIPTION
The gedit application accepts pipes, so you can specify a pipe after another command, to load the output of the command into gedit. For example: example% ls -l | gedit EXAMPLES
Example 1: To Edit an ASCII File Named document.txt example% gedit document.txt Example 2: To Add a New Tab That Contains an ASCII File Named book.txt example% gedit --new-document book.txt Example 3: To Add a New Top-Level Window That Contains an ASCII File Named testfile.txt example% gedit --new-window testfile.txt EXIT STATUS
The following exit values are returned: 0 Application exited successfully. >0 An error occurred. FILES
The following files are used by this application: /usr/bin/gnome-text-editor The executable file for the gnome-text-editor application. /usr/bin/gedit A symbolic link to the gnome-text-editor executable file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-text-editor | +-----------------------------+-----------------------------+ | | | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gnome-std-options(5), libgtksourceview-1.0(3) Online Help gedit manual. NOTES
This man page was written by the following people: Paolo Maggi, Chema Celorio, James Willcox, Federico Mena Quintero. Updated by Brian Cameron, Sun Microsystems Inc., 2003, 2004. SunOS 5.10 31 Aug 2004 gedit(1)
All times are GMT -4. The time now is 07:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy