Sep 26, 2007 #1 akgta Programmer Joined Jul 18, 2007 Messages 42 Location CA how to make an OS executable file like in DOS *.bat for eg everytime i have use CDROM i have to type the following code on the prompt: cd /cdrom touch CDROM-NOT-mounted-mcd.txt mount -t cd9660 /dev/acd0 /cdrom thanks in advance
how to make an OS executable file like in DOS *.bat for eg everytime i have use CDROM i have to type the following code on the prompt: cd /cdrom touch CDROM-NOT-mounted-mcd.txt mount -t cd9660 /dev/acd0 /cdrom thanks in advance
Sep 27, 2007 1 #2 KenCunningham Technical User Joined Mar 20, 2001 Messages 8,475 Location GB You can put your code into a shell script abd call it (for example) mountcd.sh Then change the permissions so that the script is executable: chmod 755 mountcd.sh Then execute it using ./mountcd.sh Hope this helps. I want to be good, is that not enough? Upvote 0 Downvote
You can put your code into a shell script abd call it (for example) mountcd.sh Then change the permissions so that the script is executable: chmod 755 mountcd.sh Then execute it using ./mountcd.sh Hope this helps. I want to be good, is that not enough?
Sep 28, 2007 1 #3 w1nn3r ISP Joined Sep 12, 2001 Messages 179 Location US You can use this code, just add it to a file like so: #!/bin/sh cd /cdrom touch CDROM-NOT-mounted-mcd.txt mount -t cd9660 /dev/acd0 /cdrom Then, you chmod +x <insert filename of script here> Then ./<insert filename of script here> Upvote 0 Downvote
You can use this code, just add it to a file like so: #!/bin/sh cd /cdrom touch CDROM-NOT-mounted-mcd.txt mount -t cd9660 /dev/acd0 /cdrom Then, you chmod +x <insert filename of script here> Then ./<insert filename of script here>