Sponsored Content
Top Forums Shell Programming and Scripting export not working in Bash shell Post 302402989 by amit.behera on Thursday 11th of March 2010 04:35:05 AM
Old 03-11-2010
Thanks very much.
The work around clicked
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Export Query not Working in Shell

I am exporting data using a shell program. I am getting all of the records instead of getting a subset based on my query. The export_problem.par lists all of my tables. I tried the query with the ' and without it. How do I get the export to use the query? Thanks! ... (1 Reply)
Discussion started by: GEBRAUN
1 Replies

2. UNIX for Dummies Questions & Answers

korn shell to bash - statement not working

Everything else seems to be working, but this isn't. Is it the "cat..." that is wrong of the condition? Thanks. cat tc_result.txt | while read LINE do if then let "files_run += 1"; echo "inside the if loop" # save current filetype case $LINE... (5 Replies)
Discussion started by: brdholman
5 Replies

3. Shell Programming and Scripting

if loop not working in BASH shell

i have this code for a simple if loop: #!/bin/bash array="1 2 3 4 5" array2="5 6 7 8 9" if } -gt ${array} ]; then echo "${array2} is greater than ${array}!!" fi the error is ./script8: line 9: [: too many arguments ./script8: line 9: [: too many arguments ./script8: line 9: [:... (10 Replies)
Discussion started by: npatwardhan
10 Replies

4. UNIX for Dummies Questions & Answers

Anyone know?: How the 'for'-loop could stop working in interactive bash shell?!

It is happening with my sessions already second time: a 'for'-loop for some reason stop to work as expected. That means or it is looping without exitting, or it is not loop even once. Here example of my try when it is not processing even one loop. You can see, I start new subshell and... (14 Replies)
Discussion started by: alex_5161
14 Replies

5. Shell Programming and Scripting

Parameters passed to commands but not working in Bash shell

Hi, I am trying to do this thing useing my shell bash ( sorry for my english ) I have in a file 63 hostnames, i wanna ask to the DHCP admin, to reserv that reserves 63 IP addresses of this hosts, using their mac address. I have thinked this script: for ((i=1;i<63;i++)); do arp $(head... (10 Replies)
Discussion started by: Cypress
10 Replies

6. Shell Programming and Scripting

how can I export an alias and use it in any shell that I want to switch to like bash, ksh

None of the aliases that I set are available if I switch to a different shell. How can I export aliases and make them available in any shell that I switch to like ksh or bash ? I tried these $>alias godata='cd /home/kc/app/data' $>alias -x godata='cd /home/kc/app/data' $>alias |... (2 Replies)
Discussion started by: kchinnam
2 Replies

7. Shell Programming and Scripting

Bash shell script not working-picking segment patterns from a file

Hi All, I have to pick particular segments from a file and I have prepared below shell script.But its not working and I am not able to find out whats the issue.could you guys pls help? Sample file: TS3*1451575*12*20151231*4*482.44 NM1*QC*1*CUTLER*BETTY DTM*472*20150808... (4 Replies)
Discussion started by: Venkata Prasad
4 Replies

8. Shell Programming and Scripting

Invoking a bash shell with an export var

Hello all, How can I invoke the bash shell (via command line) to execute another command by setting an exported environmental variable on the fly (as this env var would be used by the command -another script, the bash would execute). This needs to be done in one single line as the same would... (4 Replies)
Discussion started by: Praveen_218
4 Replies

9. Shell Programming and Scripting

Linux/bash Script only working if executed from shell prompt

Hi, maybe I'm asking a VERY dumb question, but would anybody out there tell me, why this f****** script won't work if executed as a cronjob, but works fine if executed from a shell prompt? #! /bin/bash set PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin date >>... (3 Replies)
Discussion started by: beislhur
3 Replies

10. Shell Programming and Scripting

Aliases NOT working inside bash shell script

i have defined a function ln_s() for customizing the ln command in script1.sh. more script1.sh echo "Starting Execution" ./script2.sh echo "End of Execution" ln_s(){ ] && return ln -s "$1" "$2" } My script1.sh executes another script2.sh which has the following entry more script2.sh... (12 Replies)
Discussion started by: mohtashims
12 Replies
Jifty::Web::Form::Clickable(3pm)			User Contributed Perl Documentation			  Jifty::Web::Form::Clickable(3pm)

NAME
Jifty::Web::Form::Clickable - Some item that can be clicked on -- either a button or a link. DESCRIPTION
METHODS
accessors Clickable adds "url", "escape_label", "continuation", "call", "returns", "submit", and "preserve_state" to the list of accessors and mutators, in addition to those offered by "accessors" in Jifty::Web::Form::Element. new PARAMHASH Creates a new Jifty::Web::Form::Clickable object. Depending on the requirements, it may render as a link or as a button. Possible parameters in the PARAMHASH are: url Sets the page that the user will end up on after they click the button. Defaults to the current page. label The text on the clickable object. tooltip Additional information about the link target. escape_label If set to true, HTML escapes the content of the label and tooltip before displaying them. This is only relevant for objects that are rendered as HTML links. The default is true. continuation The current continuation for the link. Defaults to the current continuation now, if there is one. This may be either a Jifty::Continuation object, or the "id" of such. call The continuation to call when the link is clicked. This will happen after actions have run, if any. Like "continuation", this may be a Jifty::Continuation object or the "id" of such. returns Passing this parameter implies the creation of a continuation when the link is clicked. It takes an anonymous hash of return location to where the return value is pulled from -- that is, the same structure the "parameters" method takes. See "query_parameters" in Jifty::Request::Mapper for details. submit A list of actions to run when the object is clicked. This may be an array reference or a single element; each element may either be a moniker or, a Jifty::Action or a hashref with the keys 'action' and 'arguments'. An undefined value submits all actions in the form, an empty list reference (the default) submits none. In the most complex case, you have something like this: submit => [ { action => $my_action, arguments => { name => 'Default McName', age => '23' }, }, $my_other_action, 'some-other-action-moniker' ] If you specify arguments in the submit block for a button, they will override any values from form fields submitted by the user. preserve_state A boolean; whether state variables are preserved across the link. Defaults to true if there are any AJAX actions on the link, false otherwise. parameters A hash reference of query parameters that go on the link or button. These will end up being submitted exactly like normal query parameters. as_button By default, Jifty will attempt to make the clickable into a link rather than a button, if there are no actions to run on submit. Providing a true value for "as_button" forces generate to produce a Jifty::Web::Form::Clickable::InlineButton instead of a Jifty::Web::Form::Link. as_link Attempt to rework a button into displaying as a link -- note that this only works in javascript browsers. Supplying both "as_button" and "as_link" will work, and not as perverse as it might sound at first -- it allows you to make any simple GET request into a POST request, while still appearing as a link (a GET request). target For things that start off as links, give them an html "target" attribute. Anything from Jifty::Web::Form::Element Note that this includes the "onclick" parameter, which allows you to attach javascript to your Clickable object, but be careful that your Javascript looks like "return someFunction();", or you may get an unexpected error from your browser. url [VALUE] Gets or sets the page that the user will end up on after they click the button. Defaults to the current page. label [VALUE] Gets or sets the text on the clickable object. escape_label [VALUE] Gets or sets if the label is escaped. This is only relevant for objects that are rendered as HTML links. The default is true. continuation [VALUE] Gets or sets the current continuation for the link. Defaults to the current continuation now, if there is one. This may be either a Jifty::Continuation object, or the "id" of such. call [VALUE] Gets or sets the continuation to call when the link is clicked. This will happen after actions have run, if any. Like "continuation", this may be a Jifty::Continuation object or the "id" of such. returns [VALUE] Gets or sets the return value mapping from the continuation. See Jifty::Request::Mapper for details. submit [VALUE] Gets or sets the list of actions to run when the object is clicked. This may be an array reference or a single element; each element may either be a moniker or a Jifty::Action. An undefined value submits all actions in the form, an empty list reference (the default) submits none. preserve_state [VALUE] Gets or sets whether state variables are preserved across the link. Defaults to true if there are any AJAX actions on the link, false otherwise. parameter KEY VALUE Sets the given HTTP parameter named "KEY" to the given "VALUE". state_variable KEY VALUE Sets the state variable named "KEY" to "VALUE". region_fragment NAME PATH Sets the path of the fragment named "NAME" to be "PATH". region_argument NAME ARG VALUE Sets the value of the "ARG" argument on the fragment named "NAME" to "VALUE". parameters Returns the generic list of HTTP form parameters attached to the link as a hash. Use of this is discouraged in favor or "post_parameters" and "get_parameters". post_parameters Returns the hash of parameters as they would be needed on a POST request. get_parameters Returns the hash of parameters as they would be needed on a GET request. complete_url Returns the complete GET URL, as it would appear on a link. as_link Returns the clickable as a Jifty::Web::Form::Link, if possible. Use of this method is discouraged in favor of "generate", which can better determine if a link or a button is more appropriate. as_button Returns the clickable as a Jifty::Web::Form::Field::InlineButton, if possible. Use of this method is discouraged in favor of "generate", which can better determine if a link or a button is more appropriate. generate Returns a Jifty::Web::Form::Field::InlineButton or Jifty::Web::Form::Link, whichever is more appropriate given the parameters. register_action ACTION Registers the action if it isn't registered already, but only on the link. That is, the registration will not be seen by any other buttons in the form. perl v5.14.2 2011-04-13 Jifty::Web::Form::Clickable(3pm)
All times are GMT -4. The time now is 12:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy