Hi all, I've posted the question below at the Karaf users mailling list without much success.
I'm reposting it here as I'm also using servicemix and people here is familiar with Karaf too. Thanks and sorry for cross-posting. Best regards, Pau ---------- Forwarded message ---------- From: Pau Minoves <[email protected]> Date: 21 May 2013 10:38 Subject: shell syntax for accessing System.currentTimeMillis To: user <[email protected]> Hi all, Following the documentation at: http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html I'm trying to access System.currentTimeMillis in order to get a timestamp for a script execution time. Neither addcomand nor loadClass are available in my system (servicemix). I've walked the mailing list archive without much success. Are they removed from karaf or maybe it is a servicemix thing? I've found this issue: https://issues.apache.org/jira/browse/FELIX-1473 But it is hard from me to deduce syntax and behaviour from there. I got until here, but I don't really understand the error: OpenNaaS>system = <java.lang.System> <java.lang.System> OpenNaaS>$system currentTimeMilis Error executing command: Cannot coerce currenttimemilis() to any of [] OpenNaaS>$system . currentTimeMilis Error executing command: Cannot coerce currenttimemilis() to any of [] OpenNaaS>$system currentTimeMilis() Error executing command: Cannot coerce currenttimemilis()() to any of [] Any hints? Best regards, Pau -- Distributed Applications and Networks Area (DANA) Fundació i2CAT, Internet i Innovació Digital a Catalunya, Barcelona, Spain T: +34 935 679 927 - http://dana.i2cat.net/
