View Single Post
Old 02-20-2013, 11:43 AM   #7
anakod
Enthusiast
anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.anakod ought to be getting tired of karma fortunes by now.
 
Posts: 46
Karma: 208250
Join Date: Feb 2013
Device: Kindle PaperWhite
Wink

Okay, but I don't know how I could rewrite this. This is very simple

PHP Code:
      switch(fork())
      {
        case 
0:
          {
            
execlp("/bin/sh""sh""-c""/usr/bin/lipc-set-prop -s com.lab126.keyboard open net.fabiszewski.leafpad:Abc:1"NULL);
          }
        case -
1:
          
perror("Failed to open keyboard\n");
          exit(
1);
      }

      switch(
fork())
      {
        case 
0:
          {
            
execlp("/bin/sh""sh""-c""/usr/bin/lipc-set-prop -s com.lab126.keyboard close net.fabiszewski.leafpad"NULL);
          }
        case -
1:
          
perror("Failed to open keyboard\n");
          exit(
1);
      } 
It's all under GPL.
anakod is offline   Reply With Quote