Menu

Get mount point information?.

Help
Chacaman
2015-09-04
2015-09-08
  • Chacaman

    Chacaman - 2015-09-04

    hi, how i can get mount point information i test this but not luck

    jsonp.FileSystem['Mount MountPointID'][1]['@attribures'].Free
    jsonp.FileSystem['MountPointID'][1]['@attribures'].Free
    but is not working

     
  • Mieczysław Nalewaj

    jsonp.FileSystem['Mount'][1]['@attributes']

     

    Last edit: Mieczysław Nalewaj 2015-10-31
  • Chacaman

    Chacaman - 2015-09-08

    nice, is working one more question i have this java code but is not working

    import java.io.IOException;
    import java.net.URL;

    import org.apache.commons.io.IOUtils;
    import org.json.simple.JSONArray;
    import org.json.simple.JSONObject;
    import org.json.simple.JSONValue;
    import org.json.simple.parser.ParseException;

      public class GetInfo {
      public static void main(String[] args) {
        String url = "http://localhost/phpinf/xml.php?plugin=complete&json";
        /*
    
        try {
            String GenJson = IOUtils.toString(new URL(url));
                JSONObject GenJsonObject = (JSONObject)  JSONValue.parseWithException(GenJson);
            // get the title
            System.out.println(GenJsonObject.get("Vitals"));
            // get the data
            JSONArray genreArray = (JSONArray) GenJsonObject.get("@attributes");
            // get the first genre
            JSONObject GetIP = (JSONObject) genreArray.get(0);
            System.out.println(GetIP.get("IPAddr"));
        } catch (IOException | ParseException e) {
            e.printStackTrace();
        }
    }
    

    }

    But is not working, how i can read this using java thanks

     

    Last edit: Chacaman 2015-09-08
  • Mieczysław Nalewaj

    View errors in debug console

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.