Skip to main content

Thread: Compiling a bash file?


i don't know if goes here or not need script.

have cdma usb modem not recognized ubuntu.

use have eject first device manager.
open terminal , sudo modprobe , use wdial.

cut short of process made script


code:
#!/bin/sh  sudo echo "usb modem"  sudo eject /dev/sr0  sudo sleep 1  sudo modprobe usbserial vendor=0x22f4 product=0x0021  sudo sleep 1  sudo wvdial
this eased work.

looking way can compile code binary executing launch script in terminal.

guess ease cut short 2 clicks 1 , educational purpose

how do it?

ok scripting have use line @ top of file
#!/bin/bash



put commands in , when done have make executable.
commandline >chmod yourscriptfilename a+x

can run ./scriptfilename

enjoy


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Compiling a bash file?


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?