i have a javascript code and i want to convert it into bash or shell script code to run in linux machine
document.onkeydown = function (e) {
if(e.which == 9){
return false;
}
}
thanks in advance
#!/bin/bash cd /home/username smbclient //link/to/server$ password -W domain -U username recurse prompt mput baclupfiles exit
recurse, prompt, mput baclupfiles and exit
function tx_unreachable_msg() { LOGLINE="[$DATE] no ip service unreachable" typewriter "$NOIPSERVICE niet bereikbaar" .1 sleep 1 typewriter "Mail wordt verzonden naar $email" .1 mail -s "NO ip mail error" "$email"<<EOF dynupdate.no-ip.com niet bereikbaar @ $DATE EOF }
address="$PWD" echo "$address"
#!/bin/bash for i in `seq -w 1 28` do echo "c15-0330-$i.ad.mtu.edu" # I would like to add a command here to see whether ssh c15-0330-$i.ad.mtu.edu it succeeds or not. And then output a #file which contains the all available host. done for i in `seq -w 1 20` do echo "c28-0112-$i.ad.mtu.edu" done for i in `seq -w 1 20` do echo "c28-112a-$i.ad.mtu.edu" done
$ source bash: source: filename argument required source: usage: source filename [arguments]
$ cat source #!/bin/bash echo "Hello World"
yum -y install libreoffice-headless libreoffice-writer
Package 1:libreoffice-headless-4.0.4.2-14.el6.x86_64 already installed and latest version Package 1:libreoffice-writer-4.0.4.2-14.el6.x86_64 already installed and latest version
libreoffice --headless -convert-to pdf myfile.xlsx