{"id":415,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=415"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"writing-to-attributes-from-perl-scripts","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=415","title":{"rendered":"Writing to attributes from perl scripts"},"content":{"rendered":"<p>If you&#8217;re running a BeOS web server other than PoorMan (i.e., one that does CGI) and want to be able to extract attributes from BFS files, see the <a href=\"http:\/\/www.betips.net\/TrackerBase\/\">TrackerBase<\/a> page on this site. What that page doesn&#8217;t tell you is how to <i>create<\/i> attributes from your perl scripts.<br \/>\nOnce you&#8217;ve got Tom Spindler&#8217;s <a href=\"\/chunga.php?ID=318\">Be::Attribute<\/a> perl module installed, use the syntax:<\/p>\n<pre>Be::Attribute::WriteAttr(node, attr, what, type, howbig);<\/pre>\n<p>For example, if you want to change the attribute of a certain email file called &#8222;emailfilename,&#8220; your script might look something like this:<\/p>\n<pre> use Be::Attribute; $MailNode = Be::Attribute::GetBNode(\"\/boot\/home\/mail\/in\/emailfilename\"); Be::Attribute::WriteAttr($MailNode, \"MAIL:status\", \"New\", \"String\", \"50\"); <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re running a BeOS web server other than PoorMan (i.e., one that does CGI) and want to be able to extract attributes from BFS files, see the TrackerBase page on this site. What that page doesn&#8217;t tell you is how to create attributes from your perl scripts. Once you&#8217;ve got Tom Spindler&#8217;s Be::Attribute perl [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[10],"class_list":["post-415","post","type-post","status-publish","format-standard","hentry","tag-scripting"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=415"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/415\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}