What unix command can be used to open the text file using Textpad
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What unix command can be used to open the text file using Textpad
Hi,
We have a requirement where in , there is a third party program which would generate a Text file or html file and these files would come and get stored in the directory.
Now i need to open these files in only Textpad.exe
Thanks for your reply,
I have all the required softwares installed as suggested.
Through vi command where do you specify that you need to open this text document in Textpad software only.
It should not open in notepad or anything else but we need to be able to open the file using textpad.exe .
Hi,
He is on Unix OS, he has few .txt and .html files in a specific directory and wanted to open those files in Textpad only using shell script.
So could you please let me know whether that is possible.
UNIX or GNU/Linux? Textpad.exe is typically a name for a Windows executable so cannot be run under UNIX or GNU/Linux unless you are using wine or a virtual machine running Windows ... ?
Hi,
We have a requirement where in , there is a third party program which would generate a Text file or html file and these files would come and get stored in the directory.
Now i need to open these files in only Textpad.exe
Could you please help me on this.
With Regards
Raj
hi, i never heard of textpad but judging by the name you provided, the .exe implies you are using windows. so the simple answer would be to open it using textpad ? (so not sure how this is a linux question).
may i ask why you are so adamant about using textpad (special charecters/ formatting ?). there are probably a dozen or so native linux programs that can handle basic ascii/html text like pico, vi or gedit.
if you must use a windows program to view the files on a linux system then the hard solution would be to install wine, then install the windows program on linux, then try to open the files thru wine.
please clarify so we can better assist because i, as well as the previous responders, are thoroughly confused.
Hi,
He is on Unix OS, he has few .txt and .html files in a specific directory and wanted to open those files in Textpad only using shell script.
So could you please let me know whether that is possible.
Textpad is a Windows application...that means, it only works on Windows.
If you have txt and html files, you have MANY text-editor options for Linux. Gedit, vi, emacs, and kwrite, just to name a few. You can also open them in any of the IDE editors, like Bluefish, Anjuta, or Kdevelop.
Textpad is a windows program. Even in windows, this user doesn't want to use notepad (the default but less feature full editor). What's textpad got the even gedit doesn't?
^ i think it is a case of the user thinks that textpad is the greatest simply because they are not willing to try and get used to something else.
in my previous post i mentioned the possibility of installing wine, configuring it, installing the windows program using wine, then formulate the correct command to launch the windows program using wine. but it is a silly long walk around the park when one can just use one the pre-installed defaults like gedit which likely handles regular ascii text/html better.
I went back to convince the user and he says the following.
He wanted to see the output in Textpad only because he has configured the output to get printed to Dot Matrix Printer and these setting does not change with Textpad but changes with IE , hence he only wants to get the output in Textpad.
If the same is also possible with suggested solution that is gedit from the previous post , then i will get back to the user with a demo kind and print the output.
But please confirm and also he wanted to print certain specific pages out of that out so i am looking into lpr command.
If anyone has got the same requirement then please post the same.
I went back to convince the user and he says the following.
He wanted to see the output in Textpad only because he has configured the output to get printed to Dot Matrix Printer and these setting does not change with Textpad but changes with IE , hence he only wants to get the output in Textpad.
If the same is also possible with suggested solution that is gedit from the previous post , then i will get back to the user with a demo kind and print the output. But please confirm and also he wanted to print certain specific pages out of that out so i am looking into lpr command. If anyone has got the same requirement then please post the same.
No, we can't confirm any of this..how can we? You don't say what the 'requirement' is, or anything about how things are set up, so how can we tell you if it'll work or not?
See post #10 for the best example: the user doesn't want to do anything. Again, textpad can probably be run with Wine, but it is a pointless task. All you're doing is solving one problem (temporarily), by creating others. Why run an what is (essentially) an emulator, to run a SINGLE program, on an operating system it wasn't designed for, just because a user doesn't want to move forward? The user needs to be shown the new programs, and then they need to pick one. Then either the user or YOU can migrate their custom settings to the new program. Otherwise, you are going to cause yourself more problems than you'll solve.
i am still confused... does the dot-matrix work on the linux machine (what is the brand and model) ?
if so what are these settings (formatting like bold, indents, ...) if so maybe a c-program/ script can modify the output for his needs.
if not then no matter what program you use on the host machine, it still wont print.
again, you mention printing something via ie (internet explorer ?) which is windows only; microsoft doesnt make a version of internet explorer for linux (are you sure youre not using windows ?)
if possible, post an example of the input vs. the output and maybe someone can help formulate an idea of how to solve your issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.