DEVILofDARKNESS Posted May 8, 2009 Share Posted May 8, 2009 Hi, I've programmed some litle batch files, but what do I have to do, to run it on Linux? I know Ubuntu uses terminal sever, Quote Link to comment https://forums.phpfreaks.com/topic/157381-linux-and-batch/ Share on other sites More sharing options...
trq Posted May 8, 2009 Share Posted May 8, 2009 Batch files are windows scripts. Do you mean you've programmed some shell scripts? And if so, you mean to tell me you don't know how to execute them? A simple example of a shell script and how to execute it. Open an editor create a file called foo.sh and add the following. #!/bin/bash echo "This is foo" Now, make sure it is executable: # chmod u+x foo.sh Now execute it. # ./foo.sh I know Ubuntu uses terminal sever Do you even know what a terminal server is? Quote Link to comment https://forums.phpfreaks.com/topic/157381-linux-and-batch/#findComment-829950 Share on other sites More sharing options...
DEVILofDARKNESS Posted May 9, 2009 Author Share Posted May 9, 2009 I think I know, But my question was: I've made some batch programs on Windows (.bat files ) and I was wondering if it was possible to run those on ubuntu. Quote Link to comment https://forums.phpfreaks.com/topic/157381-linux-and-batch/#findComment-830112 Share on other sites More sharing options...
trq Posted May 10, 2009 Share Posted May 10, 2009 I think I know, But my question was: I've made some batch programs on Windows (.bat files ) and I was wondering if it was possible to run those on ubuntu. No. .bat files execute dos like commands, Linux does not have a dos like shell. Quote Link to comment https://forums.phpfreaks.com/topic/157381-linux-and-batch/#findComment-830725 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.