Shell script not for CGI


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Programming Shell script not for CGI
# 1  
Shell script not for CGI

Hello all,
I found acontribution of apmcd47 in an article I read very interesting, here is the link:
The post is named:

I don't understand almost anything about shell scripting, but I'm still determined to learn.
I have a question that I have not been able to solve (so many hours at google and nothing), please tell me that the script shared makes use of CGI technology or just arbitrarily used the word 'cgi' in the path:

Code:
 /tmp/mycgi$$

I am interested in using shell scripting as a web app backend and I would not like to use CGI or FastCGI, is there a way to do it? Only with common shell scripting. thank you very much for your attention and knowledge.
Best regards

Haxo

Last edited by Neo; 1 Week Ago at 02:19 AM..
# 2  
Using traditional unix shell scripting is not optimal for processing HTTP forms on the server-side, for a number of reasons.

Here is a reference to the programming languages used by the biggest web sites, hopefully you will find this useful:

Programming languages used in most popular websites

Also, if you look at the large Web CMS frameworks, like Wordpress, Joomla, Drupal, etc; most of them are written in PHP. I guess it is just a matter of time when we will start to see huge (highly popular, widely used) CMS frameworks in Python. If anyone knows of one, please post.

If you look at the largest site (Google), their web backend is mostly written in Python.

If you look at the second largest, Facebook, their back end language is most in PHP, followed by YouTube (again written in Python) and then Yahoo, written mostly in PHP.

So, I would consider either Python or PHP if you want to get into the nuts-and-bolts of writing web applications on the server side.

I don't know any top tier web site which uses shell scripts on the server side to process web requests (CGI); however, the list above does show that Amazon and Yahoo both user PERL, but PERL is also not a shell script; it is a programming language like PHP, Python, C#, etc.
This User Gave Thanks to Neo For This Post:
# 3  
Also, if you intersect the top 10 languages, according to TIOBE (November 2019):

Code:
https://www.tiobe.com/tiobe-index/

with the declared application usage for each one of those in the top 10, from this list:

Code:
https://en.wikipedia.org/wiki/Comparison_of_programming_languages

The results are:
  • Java
  • Python
  • C#
  • Visual Basic .NET
  • Javacript
  • PHP

If you intersect the list above with the link in my first post, Java, Python and PHP are the clear "stand outs" for the web; and if you further intersect these three with the major CMS frameworks available (like Wordpress, Joomla, etc), PHP is the language which stands out (on the server-side, for processing HTTP requests).

As I mentioned, earlier, I would be very interest to know if there is a major, widely available and adopted web CMS which uses Python. I would like to try one if there is Smilie
# 4  
Thanks for your bits,
I have seen these in my past googlings,

(I can't send links yet, i need at least 5 post for do this)

But but my search keywords are: python cms 2019

Site=your tech diet dot com
Article=10 Best Python-based CMS

I hope you enjoy them, I will think in depth about your advice and review these too.
# 5  
Thanks.

Yes I know there are some frameworks in Python like django; but they are nor very popular, compared to PHP CMS frameworks.

PHP has something like an 80% user base for all web CMS (the last time I checked).

My off-hand query was for "a very widely used" Python CMS frameworks and the largest is django but the user base for django overall is limited for a reason I have not studied.

I have always used PHP for the web but would be open to Python for sure; but would prefer a much wider user community than there is now. For example, if Wprdpress was in Python and not PHP, .... something along those lines.
# 6  
See also this wiki page:

Comparison of web frameworks - Wikipedia
# 7  
Reading you, a project/platform is coming to mind right now:
'Openstack'
and I remember reading about the team's efforts to leave python 2.7 and get to have an Openstack with python3 (it is said to be reloaded and turbocharged). I don't know, I know a little bit of programming, but one day I will become a full stack developer, I hope so, because I'm choosing this for me.

--- Post updated at 12:19 PM ---

I must correct a typo in my reply, sorry for. my mistake-errata opencloud-> OPENSTACK (is now corrected)

Last edited by Haxo; 1 Week Ago at 08:31 AM..
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #450
Difficulty: Medium
In 2016, the Linux Mint website was compromised by unknown hackers, who briefly replaced download links for a version of Linux Mint with a modified version that contained malware.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to pass arguments from a textbox in CGI to a shell script?

Hello All, Could you please help me to explain that how do I pass textboxes values while running a shell script which need some arguments while running it and should be invoked after the button click. Here is an example. The first CGI is: #!/bin/ksh echo "Content-Type: text/html"... (4 Replies)
Discussion started by: RavinderSingh13
4 Replies

2. Shell Programming and Scripting

How to detect key press in cgi shell script?

I want to detect key pressed in my .cgi web page, but it does not work even I found the code in other web site. My code is : #!/bin/sh #================================================= # PATH defination # ================================================... (2 Replies)
Discussion started by: Shuinvy
2 Replies

3. Shell Programming and Scripting

shell CGI script

Hi there, I am new to scripting, please advise. I have a script running on the PC server, the script is to log on some ip to get something. script-name IP -l username after running the command, I need to type the password for the script to run. Now, I like to change the script to web... (1 Reply)
Discussion started by: zrcheng
1 Replies

4. UNIX and Linux Applications

execute shell script using CGI for html site

hi there im currently in the process of creating a website for use basically within our org. im using a os x machine and installed MAMP - which includes Apache, mysql... the site will be used by techs to primarily install pkgs files onto os x devices. i would like to have buttons or hyperlinks... (2 Replies)
Discussion started by: sheshe
2 Replies

5. Shell Programming and Scripting

Help to create a Return Button using shell script CGI

Hello Guys, I would like to know how can I create a radio button on that its possible to return to the last page, using a ksh CGI shell script. Can someone help ? Thanks so much !!!:b: I tried this, but it is a javascript code ! <INPUT TYPE="button" VALUE="BACK" ... (2 Replies)
Discussion started by: robdcb
2 Replies

6. Shell Programming and Scripting

CGI shell script curl reponse problem

Hi, I am running a bash shell script for some simple web server CGI, the script runs as expected from the browser except the following: curl --silent --max-time 10 --output /dev/null --write-out %{http_code} http://server:port/filename This line outputs 404 when i execute the script... (0 Replies)
Discussion started by: Moxy
0 Replies

7. Shell Programming and Scripting

call shell script from perl cgi script problem

hi,, i have perl scipt with line : system('./try.sh $t $d $m'); in shell scipt try.sh i have the line: echo $1 its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies

8. Shell Programming and Scripting

calling a cgi file from shell script????

Hi.. Is it possible to call a cgi program which is used to display a pop up message in the else part...On executing the script it directly prints the source code of the pop up screen.. Please if you have any idea,share with us.Thanks. #start success250=`grep -c failure... (1 Reply)
Discussion started by: elavv
1 Replies

9. Shell Programming and Scripting

invoking a shell script inside cgi shell script

Hi, I have an HTML form through which I get some text as input. i need to run a shell script say script.sh inside a perl-cgi script named main_cgi.sh on the form input. I want to write the contents of the form in a file and then perform some command line operations like grep, cat on the text... (2 Replies)
Discussion started by: smriti_shridhar
2 Replies

10. Shell Programming and Scripting

Calling CGI Perl in Shell script [urgent]

All I want to call a perl program from my shell script. Please help me. I want to call through URL only. Like " http://www.test.com/CGI-bin/test?test=value" Please help to write this script. Thanx in advance. Thanking you Regards Deepak Xavier (0 Replies)
Discussion started by: DeepakXavier
0 Replies

Featured Tech Videos