Output of the script in notepad


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Output of the script in notepad
# 1  
Old 05-11-2010
Bug Output of the script in notepad

Hi All,

I want to show my output for the script to notepad.Anybody know what is the command to do this...

Thanks..
# 2  
Old 05-11-2010
No idea what you are trying to do - if you have output from a script in a terminal session like putty, just copy and paste it to notepad. Be aware, that you might have no linebreaks in notepad. Wordpad or another more capable editor might be more useful.
# 3  
Old 05-11-2010
Question

hi,

I want to generate the output from my script as a text file.My script name is countsys.sh.The text file want to read from the asp code.Because asp code can't read unix server.I can't any idea how to do this.
# 4  
Old 05-11-2010
just run the command on terminal.
countsys.sh > abc.txt

I will explain rest of the procedure how would you read the output in asp.
This is how you have to go about.
Since asp pages are deployed on windows server (using IIS).

You will have to use little bit cgi programming inside your asp page.
You basically have to do changes in unix server and your asp code.

If possible can u explain what your page is going to do?
# 5  
Old 05-11-2010
Hi,

My page is display the total file in directory that has be count from my unix script in unix server and also show the file system for unix server...
Do you have any idea how to do this..
Because i a new for both this language.

when i issue this command
countsys.sh > abc.txt
why i can't see the result.can u explain?


Thanks.
# 6  
Old 05-11-2010
Quote:
Originally Posted by mastercar
Hi,

My page is display the total file in directory that has be count from my unix script in unix server and also show the file system for unix server...
Do you have any idea how to do this..
Because i a new for both this language.

when i issue this command
countsys.sh > abc.txt
why i can't see the result.can u explain?


Thanks.
can u please give me more details about your unix operating system
Just do as i say.
1)login to your unix machine using root.
2)copy your script to /usr/local/sbin
for example.
If your script is in /pinga123/countsys.sh
use
Code:
cp /pinga123/countsys.sh /usr/local/sbin

3)cd /usr/local/sbin
4)chmod +x countsys.sh
5)Now type countsys.sh anywhere in the filesystem you will get the output.

Reply once you are done? I may not be available after 6.00 IST.

Last edited by pinga123; 05-11-2010 at 06:37 AM..
# 7  
Old 05-12-2010
can u please give me more details about your unix operating system????

It is you mean???
/ebs/home/ebs_dba/nazrul
This User Gave Thanks to mastercar For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

UNIX and notepad++

I connect to my office server using ftp option in notepad++ I am not able to open directory's with out setting my clear case view in the notepad++ Hence pls help me in setting the view in notepad++ so that it can read all the files and directorys (6 Replies)
Discussion started by: Syed Imran
6 Replies

2. Windows & DOS: Issues & Discussions

PERL: Running script from Notepad++

I'm not sure if this forum covers PERL issues but here I go: I'm trying to run a PERL script from Notepadd++. I've entered the path of the script from the run command but it is only opening a blank window. Is there anything else that needs to be done when using the 'RUN' feature of Notepad++? (2 Replies)
Discussion started by: millsy5
2 Replies

3. Windows & DOS: Issues & Discussions

run cygwin bash script from notepad++

I'm using Notepad++ to edit my BASH scripts and using CYGWIN to run them from Windows7. In Notepad++ there is a 'Run' capability. How do I get this to run my scripts directly without having to enter the script name from the Cygwin command line? (3 Replies)
Discussion started by: millsy5
3 Replies

4. UNIX for Dummies Questions & Answers

Formatting from Notepad++ to Vi

Hi, just quick question, I currently type up my scripts in Notepad++ and then copy them into my file (in VI). However, i've noticed that all the lines get messed up and it becomes difficult to read the script. so i've to spend time then using '\' at the end of lines etc and re-formatting... (7 Replies)
Discussion started by: horhif
7 Replies

5. UNIX Desktop Questions & Answers

Wordpad or Notepad?

I am new to using UNIX and after uploading a new script to UNIX from Windows using FTP, the script doesn't always work. It seems this depends on the text editor I use and the transfer type. I understand all scripts should be transferred using ASCII, but can you advise which is the best text editor... (12 Replies)
Discussion started by: Heidi.Ebbs
12 Replies

6. Shell Programming and Scripting

Strange Characters After Using Notepad

Hello all, I'm new to UNIX and new to this forum, so forgive my lack of knowledge. I'm new with editing in vi so I FTP scripts to a Windows machine and edit the script in notepad (when I need to do something quickly). Sometimes when I FTP the script back to the UNIX box, strange characters... (4 Replies)
Discussion started by: dgower2
4 Replies
Login or Register to Ask a Question