How can I use my /bin/sh script on web browser?


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How can I use my /bin/sh script on web browser?
# 1  
Old 10-04-2019
How can I use my /bin/sh script on web browser?

Hello,

I have created my script which works properly through the terminal, but I want to convert it to perform all functions as it performs through terminal, but in this case perform through web browser.
My /bin/sh script is:
___________________________________________________________________________________________
Code:
#!/bin/sh
echo Username?
read MY_NAME
echo Provisional file name?
read MY_FILE
echo File NAME you want to save?
read MY_FILE2
cat /opt/SUNWappserver/nodeagents/ins1/logs/* | grep $MY_NAME > $MY_FILE.txt
sed 's/INFO.*;|//g' $MY_FILE.txt > $MY_FILE2.txt

___________________________________________________________________________________________



So , With my script I want through web browser "to find files that contain a text string" for example on /opt/SUNWappserver/nodeagents/ins1/logs/* filling in the fields: UserName, Provisional file name?, File NAME you want to save?, to take results and save results in $MY_FILE.txt after that do this command:

___________________________________________________________________________________________
Code:
sed 's/INFO.*;|//g' $MY_FILE.txt > $MY_FILE2.txt

___________________________________________________________________________________________

I want to use sed to clean to clear unnecessary information through the rows that will appear. This sed command is important for me!

So, can you help me with any script to run through the web browser and perform the above functions?

Regards,
Juta2020
Old 10-04-2019
This is a repost of your other topic.

How to convert my /bin/sh script with cgi and html to run it on browser!??

Thread closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to convert my /bin/sh script with cgi and html to run it on browser!??

Hello, I want to run this script on my CentOS 6 via browser : ________________________________________________________________________________________________ #!/bin/sh echo Username? read MY_NAME echo Provisional file name? read MY_FILE echo File NAME you want to save? read MY_FILE2... (16 Replies)
Discussion started by: juta2020
16 Replies

2. SCO

How to Launch Apache Web Browser?

This should be trivial, but it's not. I have Apache installed and running on my SCO UNIX OpenServer 5.0.7 system; Apache says its enabled and started. But I cannot for the life of me figure out how to launch it from a command line or from X-Windows! Maybe JTG or someone else knows the answer.... (2 Replies)
Discussion started by: Transpower
2 Replies

3. Web Development

What is Your Favorite Web Browser?

OK, please vote on your favorite web browser and comment why! Only currently supported browers please! Thanks. PS: I am a big FireFox fan. FireFox add-ons rock! (61 Replies)
Discussion started by: Neo
61 Replies

4. What is on Your Mind?

The Dillo Web Browser

Hello, Have you all noticed that the Dillo web browser always reports bugs just about on every web page. Richard Stallman's Personal Page However some, but not many have none. cheers (2 Replies)
Discussion started by: nigelc
2 Replies

5. Solaris

Web browser not opening

On clicking on my WEB BROWSER . no window is appearing , only a dialog box appearing with named "ALERT" any nothing else. What is browser package name , which is by default in Solaris 10 (3 Replies)
Discussion started by: kush singh
3 Replies

6. Linux

web browser from konsole

hi experts, i'm running red hat linux, consider there's no visual interface, no X server... actually there is one but it's written in Python! what i need is to intall a decent web browser on it! is it possible? and i only have abt 100 MBs of free disk space... (1 Reply)
Discussion started by: elzalem
1 Replies

7. UNIX for Dummies Questions & Answers

Web browser and web server for Unix

Hi there all I am looking for both a web browser as well as a web server (Ie. Netscape Fasttrack) that will run on HPUX 10. If you know where I can get these free via FTP, please contact me as soon as possible!! Thanks, Mark (1 Reply)
Discussion started by: mleathers
1 Replies
Login or Register to Ask a Question