Sep 26, 2007 #1 akgta Programmer Jul 18, 2007 42 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 Mar 20, 2001 8,475 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 Sep 12, 2001 179 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>