LinuxQuestions.org
Review your favorite Linux distribution.
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-19-2012, 03:03 AM   #1
AlanFletcher
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
bat to shell conversion


hello I was wondering if someone could help me convert this simple bat file to a shell script

Code:
ECHO OFF
:TOP
ping 127.0.0.1 -n 20
GOTO TOP
Any help appreciated
 
Old 04-19-2012, 03:06 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
you can do it yourself, I'm sure. see here: http://www.cyberciti.biz/faq/bash-while-loop/
 
Old 04-19-2012, 04:13 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Breaking your original question into portions won't help either as you still are not attempting to try and / or learn.
 
  


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
.bat file conversion to .sh file (debian) AlanFletcher Programming 7 04-19-2012 06:47 PM
[SOLVED] Convert DOS bat file to shell script spiderdog Linux - Newbie 2 06-21-2010 02:54 PM
edit help with .bat shell script visle Programming 1 03-28-2010 11:10 PM
How to invoke a .bat file inside a shell script ???? nano2 Programming 2 07-30-2009 08:36 AM
Remote Win Bat File execute Shell Script on AIX Server DriveMeCrazy AIX 5 05-26-2004 06:24 PM

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

All times are GMT -5. The time now is 02:33 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