>> How to write file like .BAT in win? << (in .BAT we can store number of commands, ifs and goto ... what about linux?)
in win we just write
ECHO message
and we save file as "TEST.bat". Then we can run it in console and we see "message".
How to do this in linux? How to write some application like .BAT? (in linux i think it is .SH)
[solved] HOWTO write .BAT file? (but for linux)
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
[solved] HOWTO write .BAT file? (but for linux)
Last edited by testsforknowledge on 01 Mar 2013, 09:51, edited 1 time in total.
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
Re: HOWTO write .BAT file? (but for linux)
1) open file
2) write
#comment
echo "message"
3) save file as "test.sh"
4) chmod 777 ./test.sh ()
5) run with
./test.sh
now i need to find available commands
(i need to rename multiple of files with .SH ... but also to copy some ...):)
2) write
#comment
echo "message"
3) save file as "test.sh"
4) chmod 777 ./test.sh ()
5) run with
./test.sh
now i need to find available commands
(i need to rename multiple of files with .SH ... but also to copy some ...):)
-
- Samurai
- Posts: 130
- Joined: 10 Mar 2011, 10:50
- Distribution: Windows phone
- Location: Saudi Arabia
Re: [solved] HOWTO write .BAT file? (but for linux)
hi,
you can use "dosbox" to run *.bat for windows on linux too.
Good luck
you can use "dosbox" to run *.bat for windows on linux too.
Good luck
Re: [solved] HOWTO write .BAT file? (but for linux)
now i need to find available commands
Code: Select all
help
NjVFQzY2Rg==
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: [solved] HOWTO write .BAT file? (but for linux)
http://forum.porteus.org/viewtopic.php? ... ual#p11923
If you a specific example of what you need to do please post and we can help. Otherwise you will learn faster by one of the millions of bash scripting tutorials on the net.
If you a specific example of what you need to do please post and we can help. Otherwise you will learn faster by one of the millions of bash scripting tutorials on the net.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.