Sponsored Content
Top Forums Shell Programming and Scripting Switching from production to development envirornment in UNIX Post 303006076 by Rajeswararao on Thursday 26th of October 2017 12:48:43 PM
Old 10-26-2017
I am working with HP server for both dev and prod

I am having all the permissions for all required files in dev but in prod I don't have the write permission( I can read and execute the files in prod).
Servers are able to talk with ssh

I am having a UNIX script in which I need to make changes but I don't have the write permission. I thought I can move the files from prod to dev, so I can make the changes and again move to prod. Is this correct way?

Thanks,
Rajesh
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

music production, unix

okay, so i'm using windows right now because i produce electronic music and all my software is written for windows. i want to get rid of microsoft's os, so i'm wondering if there is an easy way to run these windows programs on a unix system. maybe a windows emulator for x-windows or something... (1 Reply)
Discussion started by: nydel
1 Replies

2. UNIX for Dummies Questions & Answers

Dominant Unix in production?

What's the dominant Unix in production environment? Solaris or Linux? HP-UX and AIX have never been "dominant", while HP-UX is widely used in financial circles... Is Linux reallly where it's all going for major production environments running Oracle/SAP/whatever or will Solaris remain... (1 Reply)
Discussion started by: etc
1 Replies

3. Shell Programming and Scripting

Switching shells in UNIX Scripts

Solaris Newbie here to scripting in UNIX/SOLARIS. What I am looking to do is, once the script is executed, switch to /bin/bash shell and continue to execute the script. The problem I run into is once the script switches to the Bash shell, the script stops, and does not execute the... (2 Replies)
Discussion started by: Scoobiez
2 Replies

4. UNIX for Dummies Questions & Answers

Most common version of UNIX on production systems

I am new to UNIX (about a year) and learning as fast as I can. I am an instructor teaching UNIX and have two labs with Ultra 10 333 MHz, Sun Blade 1000 1 GHz, Blade 100, and Two Enterprise 250 Servers. We are currently teaching our classes using the Solaris 2.10 OS, downloaded in May 2006, I am not... (7 Replies)
Discussion started by: dutchman
7 Replies

5. UNIX for Dummies Questions & Answers

Unix Kernel Switching?

How do I go about switching from one Kernel to another? I figure the process is somewhat like "compile -> remove old boot reference -> add new boot reference -> reboot/restart kernel"... but honestly I have no idea how to do this... I'm trying to test out a piece of software, but it only runs... (3 Replies)
Discussion started by: jjinno
3 Replies

6. Shell Programming and Scripting

Difference between development and Production unix servers for a application??

Hi all I am running a major script of my application in development for implementing code changes for process improvement in time. The script runs in production once in a month . It takes 8 hours 30 mins in Production server . what surprice me is , when I run the same script in development server... (9 Replies)
Discussion started by: sakthifire
9 Replies

7. UNIX and Linux Applications

roles and responsibilites in unix shell scripting as a production support consultant

what are the roles and responsibilites in unix shell scripting as a production support consultant in oracle database (2 Replies)
Discussion started by: alokjyotibal
2 Replies

8. BSD

Copying OpenBSD Kernel from a non production to production machine

Hi All, There are few OpenBSD 4.8 servers without compiler installed at my working place. However, sometimes there are some patches released for patching the kernel. My question is: Can I setup a non production OpenBSD 4.8 server as a test machine with compiler installed and use it to... (1 Reply)
Discussion started by: lcxpics
1 Replies

9. Linux

Switching between Windows and UNIX

I have both UNIX and Windows on my system. While booting it asks for me to select an OS. Once I log in to an OS, then to log in to another OS, there is no direct method. I need to shutdown and again start to select another OS. May I know any method to directly switch between the two. (23 Replies)
Discussion started by: ravisingh
23 Replies

10. Shell Programming and Scripting

Switching server in UNIX via shell script (SSH )

Requirement: I am writing a shell script which take some file from say Server1 and I have to execute some command on Server2 then I have to manipulate the data and based on that I have to produce report. Problem:I can schedule the shell script on only one server (Server1 or Server2) So, In the... (3 Replies)
Discussion started by: raks2301
3 Replies
Query(3pm)						User Contributed Perl Documentation						Query(3pm)

NAME
URI::Query - class providing URI query string manipulation SYNOPSIS
# Constructor - using a GET query string $qq = URI::Query->new($query_string); # OR Constructor - using a hashref of key => value parameters $qq = URI::Query->new($cgi->Vars); # OR Constructor - using an array of successive keys and values $qq = URI::Query->new(@params); # Revert back to the initial constructor state (to do it all again) $qq->revert; # Remove all occurrences of the given parameters $qq->strip('page', 'next'); # Remove all parameters except the given ones $qq->strip_except('pagesize', 'order'); # Remove all empty/undefined parameters $qq->strip_null; # Replace all occurrences of the given parameters $qq->replace(page => $page, foo => 'bar'); # Set the argument separator to use for output (default: unescaped '&') $qq->separator(';'); # Output the current query string print "$qq"; # OR $qq->stringify; # Stringify with explicit argument separator $qq->stringify(';'); # Get a flattened hash/hashref of the current parameters # (single item parameters as scalars, multiples as an arrayref) my %qq = $qq->hash; # Get a non-flattened hash/hashref of the current parameters # (parameter => arrayref of values) my %qq = $qq->hash_arrayref; # Get the current query string as a set of hidden input tags print $qq->hidden; DESCRIPTION
URI::Query provides simple URI query string manipulation, allowing you to create and manipulate URI query strings from GET and POST requests in web applications. This is primarily useful for creating links where you wish to preserve some subset of the parameters to the current request, and potentially add or replace others. Given a query string this is doable with regexes, of course, but making sure you get the anchoring and escaping right is tedious and error-prone - this module is simpler. CONSTRUCTOR URI::Query objects can be constructed from scalar query strings ('foo=1&bar=2&bar=3'), from a hashref which has parameters as keys, and values either as scalars or arrayrefs of scalars (to handle the case of parameters with multiple values e.g. { foo => '1', bar => [ '2', '3' ] }), or arrays composed of successive parameters-value pairs e.g. ('foo', '1', 'bar', '2', 'bar', '3'). For instance: # Constructor - using a GET query string $qq = URI::Query->new($query_string); # Constructor - using an array of successive keys and values $qq = URI::Query->new(@params); # Constructor - using a hashref of key => value parameters, # where values are either scalars or arrayrefs of scalars $qq = URI::Query->new($cgi->Vars); URI::Query also handles CGI.pm-style hashrefs, where multiple values are packed into a single string, separated by the "" (null) character. All keys and values are URI unescaped at construction time, and are stored and referenced unescaped. So a query string like: group=prod%2Cinfra%2Ctest&op%3Aset=x%3Dy is stored as: 'group' => 'prod,infra,test' 'op:set' => 'x=y' You should always use the unescaped/normal variants in methods i.e. $qq->replace('op:set' => 'x=z'); NOT: $qq->replace('op%3Aset' => 'x%3Dz'); MODIFIER METHODS All modifier methods change the state of the URI::Query object in some way, and return $self, so they can be used in chained style e.g. $qq->revert->strip('foo')->replace(bar => 123); Note that URI::Query stashes a copy of the parameter set that existed at construction time, so that any changes made by these methods can be rolled back using 'revert()'. So you don't (usually) need to keep multiple copies around to handle incompatible changes. revert() Revert the current parameter set back to that originally given at construction time i.e. discard all changes made since construction. strip($param1, $param2, ...) Remove all occurrences of the given parameters and their values from the current parameter set. strip_except($param1, $param2, ...) Remove all parameters EXCEPT those given from the current parameter set. strip_null() Remove all parameters that have a value of undef from the current parameter set. replace($param1 => $value1, $param2, $value2, ...) Replace the values of the given parameters in the current parameter set with these new ones. Parameter names must be scalars, but values can be either scalars or arrayrefs of scalars, when multiple values are desired. Note that 'replace' can also be used to add or append, since there's no requirement that the parameters already exist in the current parameter set. separator($separator) Set the argument separator to use for output. Default: '&'. OUTPUT METHODS "$qq", stringify(), stringify($separator) Return the current parameter set as a conventional param=value query string, using $separator as the separator if given. e.g. foo=1&bar=2&bar=3 Note that all parameters and values are URI escaped by stringify(), so that query-string reserved characters do not occur within elements. For instance, a parameter set of: 'group' => 'prod,infra,test' 'op:set' => 'x=y' will be stringified as: group=prod%2Cinfra%2Ctest&op%3Aset=x%3Dy hash() Return a hash (in list context) or hashref (in scalar context) of the current parameter set. Single-item parameters have scalar values, while while multiple-item parameters have arrayref values e.g. { foo => 1, bar => [ 2, 3 ], } hash_arrayref() Return a hash (in list context) or hashref (in scalar context) of the current parameter set. All values are returned as arrayrefs, including those with single values e.g. { foo => [ 1 ], bar => [ 2, 3 ], } hidden() Returns the current parameter set as a concatenated string of hidden input tags, one per parameter-value e.g. <input type="hidden" name="foo" value="1" /> <input type="hidden" name="bar" value="2" /> <input type="hidden" name="bar" value="3" /> BUGS AND CAVEATS
Please report bugs and/or feature requests to "bug-uri-query at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=URI-Query>. Should allow unescaping of input to be turned off, for situations in which it's already been done. Please let me know if you find you actually need this. I don't think it makes sense on the output side though, since you need to understand the structure of the query to escape elements correctly. PATCHES
URI::Query code lives at <https://github.com/gavincarr/URI-Query>. Patches / pull requests welcome! AUTHOR
Gavin Carr <gavin@openfusion.com.au> COPYRIGHT
Copyright 2004-2011, Gavin Carr. All Rights Reserved. This program is free software. You may copy or redistribute it under the same terms as perl itself. perl v5.10.1 2011-01-21 Query(3pm)
All times are GMT -4. The time now is 04:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy