Tags:

ผมได้ใช้ easy gui เข้ามาช่วยในการสร้าง gui เพราะมันไม่ต้องใช้ความรู้มา แต่ติดตรงที่ execute command จาตัวโปรแกรมที่เขียนยังไม่ได้ โดยได้เคยหาความรู้เเล้วทดสอบโค้ดที่เรียก subprocess ที่รัน -ls แล้ว เเต่เมื่อใส่คำสั่งที่ขึ้นด้วย sud แล้วมันใช้ไม่ได้ เพราะต้องเข้าในฐานะรูทถึงจาไม่เรียกถาม password ใครมีความรู้เรื่องนี้บาง ช่วยแสดงความคิดเห็นหน่อยนะ ครับ ขอบคุณล่วงหน้าคับ

Comments

By: hiddenmin
UbuntuWindows
hiddenmin's blog
on 02/06/11 23:25 #296242 toggle
hiddenmin's picture

keyword: sudo password command line

By: Balll
iPhoneRed Hat
Balll's blog
on 03/06/11 0:55 #296255 toggle
Balll's picture

echo password | sudo -S command

By: winggundamth
ContributorAndroidUbuntuIn Love
winggundamth's blog
on 03/06/11 7:26 #296293 toggle
winggundamth's picture

เข้ามาหาฮาสองคนข้างบน


I will change the world, to the better day.

By: hiddenmin
UbuntuWindows
hiddenmin's blog
on 04/06/11 10:38 #296648 Reply to:296293 toggle
hiddenmin's picture

ฮา?

By: Balll
iPhoneRed Hat
Balll's blog
on 04/06/11 15:15 #296704 Reply to:296293 toggle
Balll's picture

สามคนติดสินะ : P

By: EThaiZone
ContributorSymbian
EThaiZone's blog
on 03/06/11 9:28 #296346 toggle
EThaiZone's picture

ถ้าท่านได้โปรแกรม gui ที่เขียนมาแล้ว ทำไมไม่รันโปรแกรมที่คุณเขียนเป็น root ล่ะครับ gksudo

By: UltimaWeapon
AndroidUbuntuWindows
UltimaWeapon's blog
on 03/06/11 14:28 #296449 toggle
UltimaWeapon's picture

ทำไมผมรู้สึกอ่านยากๆพิกล - -'


My Facebook My Blog

By: donga
donga's blog
on 03/06/11 16:49 #296499 toggle
donga's picture

ใช้ Firewall Builder จะง่ายกว่าไหมครับ หน้าตาคล้ายกับ WinRoute ดี :-D

By: absulation
absulation's blog
on 06/06/11 15:12 #297389 toggle
absulation's picture

เมื่อสมัยเรียนผมใช้ php กับ FreeBSD วิธี ตลกๆของผมก็คือ จับคำสั่งยัดลงใน text ไฟล์ แล้วให้มี bash มารันทุกวิอ่ะ