Tags:
Forums: 

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

Get latest news from Blognone
By: hiddenmin
AndroidUbuntuWindows
on 3 June 2011 - 00:25 #296242
hiddenmin's picture

keyword: sudo password command line

By: Balll
iPhoneRed Hat
on 3 June 2011 - 01:55 #296255
Balll's picture

echo password | sudo -S command

By: winggundamth
ContributorAndroidUbuntuIn Love
on 3 June 2011 - 08:26 #296293
winggundamth's picture

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


I will change the world, to the better day.

By: hiddenmin
AndroidUbuntuWindows
on 4 June 2011 - 11:38 #296648 Reply to:296293
hiddenmin's picture

ฮา?

By: Balll
iPhoneRed Hat
on 4 June 2011 - 16:15 #296704 Reply to:296293
Balll's picture

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

By: EThaiZone
ContributorAndroidUbuntuWindows
on 3 June 2011 - 10:28 #296346
EThaiZone's picture

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


มันไม่ง่ายเลยที่จะทำ GIF ให้มีขนาดน้อยกว่า 20kB

By: UltimaWeapon
Windows PhoneRed HatWindowsIn Love
on 3 June 2011 - 15:28 #296449
UltimaWeapon's picture

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

By: donga on 3 June 2011 - 17:49 #296499

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

By: absulation
AndroidWindows
on 6 June 2011 - 16:12 #297389
absulation's picture

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