LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-24-2012, 02:47 PM   #1
d3adc0de
LQ Newbie
 
Registered: Apr 2012
Location: Cyberspace
Posts: 26

Rep: Reputation: Disabled
How do you execute a BASH script via ASP Classic?


I know, I know ASP Classic is antiquated and horrible, however I'm just the grunt and do as I'm told.

But how would someone execute a BASH script on a completely different server via ASP? Is this even possible?
 
Old 04-24-2012, 03:09 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You're really asking how to do a remote procedure call.

Put some kind of endpoint on the server with the BASH script (web service, SOAP, XMLRPC, etc) whose job is to execute that BASH script. Then call that endpoint from the ASP Classic server.

For example, you might put a URL on the server with the BASH script whose address is /executebashscript/. POSTing to that URL will cause that server to execute that BASH script. You can then POST to it from the ASP Classic server.

Last edited by dugan; 04-24-2012 at 03:22 PM.
 
1 members found this post helpful.
Old 04-24-2012, 03:27 PM   #3
d3adc0de
LQ Newbie
 
Registered: Apr 2012
Location: Cyberspace
Posts: 26

Original Poster
Rep: Reputation: Disabled
Much like an AJAX Post call... got it. Thanks... I tried looking it up, but Google went "MICROSOFT EXECUTING LINUX?! ... WAT?"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute bash script in C waqasdaar Programming 15 10-27-2015 02:54 PM
Bash Script that will execute all *.sh in a folder trettet Linux - Newbie 2 04-09-2012 05:34 AM
Can't execute Bash script. zbe Linux - Software 4 10-17-2008 08:05 AM
Trying to execute bash script upon login?? mr-d-2003 Linux - Newbie 4 10-30-2003 03:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration