LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-18-2005, 09:06 AM   #1
innuendo_98
LQ Newbie
 
Registered: Mar 2005
Location: USA
Distribution: Mandrake
Posts: 19

Rep: Reputation: 0
sh script under windows


Is there a way to run a linux script through windows, I'm using putty as my ssh client
 
Old 04-18-2005, 01:07 PM   #2
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
i believe the script is dependent on the shell you use, so bash scripts are different than cshell scripts and so forth. i think you would need to run a windows version of the bash shell (assumeing your using bash to begin with). this sight looks like it addresses this very problem.
 
Old 04-18-2005, 01:25 PM   #3
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
I like the cygwin tools, myself. You can get a bash prompt on your windows box to execute bash scripts under Windows.

But... you say you are using Putty to ssh in to a linux box. You should be able to just execute your scripts on the linux box that way. Doing it this way, they are getting executed on the Linux box, though you are initiating the execution from Windows.

What sort of problems are you running into? Maybe you can be more specific about what exactly you are trying to do and what your problem is.

Last edited by deiussum; 04-18-2005 at 01:27 PM.
 
Old 04-21-2005, 07:29 AM   #4
innuendo_98
LQ Newbie
 
Registered: Mar 2005
Location: USA
Distribution: Mandrake
Posts: 19

Original Poster
Rep: Reputation: 0
Well I have no problems getting to run my scripts, but let say I'm not here, I don't want people to be wandering around the linux box ... Yeah I can implement permissions and that but I got this request to see if the script can be more 'visual' ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Simple Windows script zaichik Programming 4 01-11-2005 06:34 AM
Script to Mute Windows' Volume mijenks Programming 1 12-14-2004 05:30 PM
FTP Script (on Windows [shiver]) systemparadox General 7 08-24-2004 09:49 AM
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 10:22 AM
*NIX Script Executing from Windows chrisk5527 Linux - General 7 05-02-2003 05:29 AM

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

All times are GMT -5. The time now is 02:28 AM.

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