Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Non Windows > Linux & Open source community

Reply
 
Thread Tools
  #1  
Old 23rd November 2011
Linuxgeek's Avatar
Linuxgeek Linuxgeek is offline
Member Aktif
 
Join Date: Nov 2011
Posts: 201
Rep Power: 0
Linuxgeek mempunyai hidup yang Normal
Default [ASK]Tanya Tentang Bash Script

Gan, ada yang bisa bantuin ane ga?



jadi gini gan ane tuh rencannya mo ngejalanin routing tapi menggunakan bash script..



scriptnya kek gini


Code:

#!/bin/bash
route add -net 172.14.2.0 netmask 255.255.255.0 gw 192.168.1.2
route add -net 192.168.2.0 netmask 255.255.255.0 gw 172.14.1.2





yang ane tanyain gimana caranya ane bisa ngejalanin file bash itu tapi bukan sebagai root..



soalna pas ane dalam posisi root file bash itu bisa jalan, tapi pas ane keluar dari root, programnya ga bisa dijalanin.. (mungkin karena perintah route itu mesti masuk sebagai root)



ada yg bisa kasih ane bantuan ato cara lain mungkin??



ane minta maaf klo dan thanks banget klo ada yg mau bantu :



thanks pisan



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 07:25 AM.


no new posts