Sponsored Content
Top Forums Shell Programming and Scripting Variables in paths dont get displayed Post 302323669 by vidyadhar85 on Monday 8th of June 2009 04:59:45 PM
Old 06-08-2009
try puting it in this way
Code:
NODE=database1
j=/home/log/${NODE}/alert${NODE}.log
echo $j


Last edited by vidyadhar85; 06-08-2009 at 06:42 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

hostname not displayed

Hi, I posted a problem earlier on on how to change IP addresses on an E450. I was able to work around this and wanna say thanks to all who assisted. But now on my server, I get this error, trying to configure hosts..RPC timed out. Also, when I type on the command line, hostname, nothing is... (7 Replies)
Discussion started by: Ronny
7 Replies

2. HP-UX

swlist is not displayed in HP-UX

Hi swlist command is not displayed in HP-UX ..it displays swlist: Command not found. uname -a HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license :b: Best Regards vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies

3. Shell Programming and Scripting

Password is getting displayed

My shell script which runs on solaris has an execution in it. Contents of shell script BEGIN : Executable_filename username/password@DBinstance parameter2 parameter3 Contents of shell script END : When i launch the shell script, it connects to database to gets few details.. In the... (3 Replies)
Discussion started by: shafi2all
3 Replies

4. UNIX for Dummies Questions & Answers

Date to be displayed in two digits

I want the date to be displayed in two digits. I have written a script to calculate yesterday's date. I'm getting the yesterday's date as 2009085. Desired output: 20090805 Find the script below: #!/bin/ksh ### Script to get Yesterday Date ############# Y=`date +'%Y'`... (6 Replies)
Discussion started by: venkatesht
6 Replies

5. Shell Programming and Scripting

password getting displayed using sudo

Hi While doing the following command password is gettin dispalyed : ssh <host> "sudo command ; exit" .... while i type my password for 2nd its gettin displayed ... i tried stty -echo and stty echo ... still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies

6. HP-UX

Search environment variables for paths

Hi, I am using the HP machine at the moment and by default I have been setup with the kron shell i.e. my home profile is .kshrc I would like to access a program anywhere on the system so I have added a path and created an environment variable like this: export myvarpath=/a/abc/def/ghij... (3 Replies)
Discussion started by: cyberfrog
3 Replies

7. Shell Programming and Scripting

Suppressing a message from being displayed

I have a script which checks for *.txt files in a particular directory and if no files were found then it goes into sleep for 10 secs and looks back for files again and if any files were found then the script does some processing with the files found, which is my requirement too. FILE_EXISTS=`ls... (5 Replies)
Discussion started by: vpv0002
5 Replies

8. Shell Programming and Scripting

perl - output not being displayed

Hi All I have the following code sub pall_nvrm { my $cmd = `pall -w "/u/ab/scripts/dev/nvrmerros/nvrmpaller"`; print $cmd; } if i run pall -w "/u/ab/scripts/dev/nvrmerros/nvrmpaller" in a shell i get this sort of out put eagley: boxted: cadle: eabost: hales: (3 Replies)
Discussion started by: ab52
3 Replies

9. SuSE

No IP address displayed in who command

when i open a terminal session of my SUSE server using puTTy and type "who am i" then it displays my local pc ip address. root@LinuxSUSE1> who am i root pts/8 2012-03-28 16:02 (192.168.134.213) But when i open a terminal session of my SUSE server using Xmanager's Xstart and type... (9 Replies)
Discussion started by: Arun_Linux
9 Replies

10. Shell Programming and Scripting

[zenity] string is not displayed

I am trying to display a string in zenity: chars="\, /, <, >, ?, |, &, $" echo $chars \, /, <, >, ?, |, &, $ Now when I execute: zenity --forms --text="Chars not allowed: $chars" --add-entry="File Name" Instead of getting Chars not allowed: \, <, >, ?, |, &, $ I am getting Forms... (3 Replies)
Discussion started by: soichiro
3 Replies
RDF::Redland::Model(3pm)				User Contributed Perl Documentation				  RDF::Redland::Model(3pm)

NAME
RDF::Redland::Model - Redland RDF Model Class SYNOPSIS
use RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); my $model=new RDF::Redland::Model($storage, ""); ... my(@sources)=$model->targets($predicate_node, $object_node); ... DESCRIPTION
Manipulate the RDF model. CONSTRUCTORS
new STORAGE OPTIONS_STRING new_with_options STORAGE OPTIONS_HASH Create a new RDF::Redland::Model object using RDF::Redland::Storage object STORAGE with a options. The options can be given either as a string in the first form as OPTIONS_STRING. The options take the form key1='value1',key2='value2'. The quotes are required. In the second case OPTIONS_HASH is a reference to a Perl hash of options. new_from_model MODEL Create a new model from an existing RDF::Redland::Model MODEL (copy constructor). METHODS
size Return the size of the model (number of statements). sync Synchronise the model to the underlying storage. add SUBJECT PREDICATE OBJECT Add a new statement to the model with SUBJECT, PREDICATE and OBJECT. These can be RDF::Redland::Node, RDF::Redland::URI or perl URI objects. add_typed_literal_statement SUBJECT PREDICATE STRING [XML_LANGUAGE [DATATYPE]] Add a new statement to the model containing a typed literal string object STRING with (optional) XML language (xml:lang attribute) XML_LANGUAGE and (optional) datatype URI DATATYPE. XML_LANGUAGE or DATATYPE can either or both be set to undef. add_statement STATEMENT [CONTEXT] | NODE NODE NODE [CONTEXT] Add RDF::Redland::Statement STATEMENT or the statement formed by NODE NODE NODE to the model. If the optional CONTEXT is given, associate it with that context. Any of NODE or CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. add_statements STREAM [CONTEXT] Add the statements from the RDF::Redland::Stream STREAM to the model. If the optional CONTEXT is given, associate it with that context. CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. remove_statement STATEMENT [CONTEXT] | NODE NODE NODE [CONTEXT] Remove RDF::Redland::Statement STATEMENT or the statement formed by NODE NODE NODE from the model. If the optional CONTEXT is given, remove only the statement stored with that context. Any of NODE or CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. remove_context_statements CONTEXT Remove all RDF::Redland::Statement STATEMENTs from the model with the given CONTEXT context. CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. contains_statement STATEMENT Return non 0 if the model contains RDF::Redland::Statement STATEMENT. as_stream [CONTEXT] Return a new RDF::Redland::Stream object seralising the entire model, or just those statements with CONTEXT, as RDF::Redland::Statement objects. If given, CONTEXT can be a RDF::Redland::Node, RDF::Redland::URI or perl URI object. find_statements STATEMENT [CONTEXT] Find all matching statements in the model matching partial RDF::Redland::Statement STATEMENT (any of the subject, predicate, object RDF::Redland::Node can be undef). If CONTEXT is given, finds statements only in that context. In an array context, returns an array of the matching RDF::Redland::Statement objects. In a scalar context, returns the RDF::Redland::Stream object representing the results. sources ARC TARGET Get all source RDF::Redland::Node objects for a given arc ARC, target TARGET> RDF::Redland::Node objects as a list of RDF::Redland::Node objects. arcs SOURCE TARGET Get all arc RDF::Redland::Node objects for a given source SOURCE, target TARGET RDF::Redland::Node objects as a list of RDF::Redland::Node objects. targets SOURCE ARC Get all target RDF::Redland::Node objects for a given source SOURCE, arc ARC RDF::Redland::Node objects as a list of RDF::Redland::Node objects. sources_iterator ARC TARGET Get all source RDF::Redland::Node objects for a given arc ARC, target TARGET RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure. arcs_iterator SOURCE TARGET Get all arc RDF::Redland::Node objects for a given source SOURCE, target TARGET RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure. targets_iterator SOURCE ARC Get all target RDF::Redland::Node objects for a given source SOURCE, arc ARC RDF::Redland::Node objects as an RDF::Redland::Iterator or undef on failure. source ARC TARGET Get one source RDF::Redland::Node object that matches a given arc ARC, target TARGET RDF::Redland::Node objects or undef if there is no match. arc SOURCE TARGET Get one arc RDF::Redland::Node object that matches a given source SOURCE, target TARGET RDF::Redland::Node objects or undef if there is no match. target SOURCE ARC Get one target RDF::Redland::Node object that matches a given source SOURCE, arc ARC RDF::Redland::Node objects or undef if there is no match. contexts Get all context RDF::Redland::Node objects in the model feature URI [VALUE] Get/set a model feature. The feature is named via RDF::Redland::URI URI and the value is a RDF::Redland::Node. If VALUE is given, the feature is set to that value, otherwise the current value is returned. query_execute QUERY Execute the QUERY RDF::Redland::Query against the model returning a result set RDF::Redland::QueryResults or undef on failure. load URI [SYNTAX-NAME [ MIME-TYPE [SYNTAX-URI [HANDLER ]]] Load content from URI into the model, guessing the parser. to_string [BASE-URI [SYNTAX-NAME [ MIME-TYPE [SYNTAX-URI]]] Serialize the model to a syntax. If no serializer name is given, the default serializer RDF/XML is used. OLDER METHODS
serialise serialize Return a new RDF::Redland::Stream object seralising the model as RDF::Redland::Statement objects. Replaced by as_stream to reduce confusion with the RDF::Redland::Serializer class. SEE ALSO
RDF::Redland::Storage, RDF::Redland::Node and RDF::Redland::Statement AUTHOR
Dave Beckett - http://www.dajobe.org/ perl v5.14.2 2011-02-04 RDF::Redland::Model(3pm)
All times are GMT -4. The time now is 10:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy