Peter M. Brigham <pmbrig@...> writes: > > So can a couple of Unix users out there test this part out? > > if there is a file "/sys/class/power_supply/BAT0" then > put url "/sys/class/power_supply/BAT0" into tStatus > else if there is a file "/sys/class/power_supply/BAT1" then > put url "/sys/class/power_supply/BAT1" into tStatus
Once again, you're checking a directory, not a file. So you either want "if there is a folder" instead of "if there is a file" or you want 'if there is a file "/sys/class/power_supply/BAT0/status"' and you need to grab the actual file contents: put url "/sys/class/power_supply/BAT0/status" into tStatus -- Mark Wieder ahsoftw...@gmail.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode