Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
197 views

one of two parameters mandatory

I'm trying to make a solid PowerShell function with parameters. Now the problem is I don't get the ParameterSetNames to work. What I want to get is that computername OR ipaddress is always ...
2
votes
0answers
68 views

cloud-init script with args (parametrized)

Long Story I'm preparing cloud-init scripts for instaling monitoring software agent (disclaimer: I'm one of the founders of MonitOwl). The agent software collect information (like memory or network ...
1
vote
1answer
480 views

/bin/sh: /bin/cp: Argument list too long

I have problem with this command: 'cp' -fr /www/*-aws/* /www/mainhost/aws/awstatstotals/tmp/ Error is Argument list too long - I know many /www/-aws/ folders. I know that I can use FIND command, ...
0
votes
1answer
34 views

How do I set a windows service to use a parameter on restart?

I read this article passing parameters to services where it says to edit the ImagePath registry key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\, but when I restarted my service this ...
3
votes
2answers
290 views

Redirect to 404 if filename passed as parameter does not exitsts

I have special parameter data=/path/to/filename.htm in uri. Its old and rusty site builded on SSI, and I can't modify it. Problem is when filename passed as arg_data not exists, page is broken. I ...
0
votes
1answer
215 views

Nginx - Rewrite Domain to Domain with full URL

I need to setup nginx to rewrite "www.test.com" to "www.new-test.com/test/test?foo=bar&bar=foo". I've tried the following code: server { listen 80; server_name test.com www.test.com; ...
3
votes
2answers
216 views

Powershell - external command's parameter not accepted

This seems like a simple problem but I am unable to fix it Running dfsutil command in shell returns result C:\Windows\system32>dfsutil link "\server.domain.com\DFSRootname\Sharename" Link ...
1
vote
1answer
2k views

How do I configure parameterized classes with arrays in puppet?

My goal is to define a class that takes, as input, an array of pairs. Since I'm not sure how to define an array of pairs, I'm just going to use a pair of arrays instead. class student($username, ...
0
votes
1answer
289 views

Passing common parameter hashes to defines in Puppet

Is something like this possible in Puppet? $common_params = { ensure => present, domain_name => $domain_name, admin_port => $admin_port, ...
1
vote
2answers
2k views

Linux: How to pass parameters to `service foo start` (at command line)?

I'd like to pass an argument to the service I am starting. E.g. starting a server in a debug mode. Like, service jboss-as start debug Or such. But service seems not to support that. Is there some ...
1
vote
1answer
145 views

Extract ip, mask and gateway of a network interface separately

I know that the command ifconfig will give you ip, mask and gateway of a given network interface. I want to "programmatically" extract each of those paramaters separately. At the moment the best ...
0
votes
1answer
126 views

Kerberos: Running an app with a parameter using krenew

I need to run an application with krenew, but the application also needs to receive a parameter via command line and I need to send its output to a file. From the documentation, it looks like this ...
0
votes
1answer
3k views

How to pass custom parameters to PHP from Nginx?

I'm using Nginx 1.2.4 in combination with PHP-FPM 5.4.8 with a fastcgi pass and trying to pass custom parameters to PHP. Here are the options I have found so far: using the env directive to set an ...
0
votes
2answers
717 views

.htaccess redirect, from old dirty URL to a clean new URL with parameters

I have the following 2 links, I'm not great with .htaccess rules yet. Old URL: http://www.mywebsite.org.uk/donate/donate.php?charity_id=885&project_id=18111 New URL: ...
0
votes
1answer
34 views

Apache: Use requested directory as a parameter

Here's what I'd like to do: If a user goes to www.example.com/thislocation, I'd like to redirect to a particular script and give it "thislocation" as a parameter. So if a user navigated to ...
1
vote
1answer
76 views

need rewrite nginx

I'm having URLs like: index.php?q=123&w=456&e=789 and I need to rewrite them in something like: index/123/456/789 without using "if". So far I've tried: location / { rewrite ...
1
vote
1answer
1k views

Questions about NGINX limit_req_zone

I got a problem with NGINX limit_req_zone. Anyone can help? The problem is that, I want to limit user access to some specific URL, for example: /forum.php?mod=forumdisplay? ...
4
votes
3answers
243 views

Java default JRE parameters on Unix

Is it possible to configure java in unix to always add a JRE parameter whenever java is run? e.g. -Dcom.sun.management.jmxremote.port=25800
0
votes
1answer
104 views

bash script parameters & error trapping

I've created a bash script for a cron job that I'm using to convert an uploaded file to a couple of formats and then moving it to another folder where another cron job will store it away, etc. The ...
0
votes
2answers
191 views

Running php inside screen with parameters?

i am running a php file that takes up to 2-4 hours to run, and because my internet is so bad i will need to run it inside a linux server (screen). My question is: How can i run php file inside screen ...
1
vote
1answer
1k views

Catching url parameters( “?=” or “&=” ) with Apache LocationMatch

I couldn't think of a good title for this. Basically I have basic auth that covers the whole site from /, but I want urls with certain parameters to be excluded from authentication. Example: do not ...
4
votes
3answers
27k views

Setting Java Runtime setting for all users on a client PC

We have a problem with a java application running out of memory. Our (Windows XP) client PCs have JRE 1.6 version 18 installed. I want to increase the -Xmx runtime parameter for the JRE to 512M but I ...
2
votes
1answer
744 views

MySQL Stored Procedure Parameters are NULL

I am stumped, and was hoping someone here would have a quick and easy answer. I did a fresh install of MySQL 5.5 and am trying to pass parameters into a stored procedure. The parameter values aren't ...
0
votes
1answer
1k views

jmeter testing with different source ip and parameter (from list) on each run

I'm trying to test a server with jmeter and I want to use different source IP without spoofing (although I'm willing to hear about it as well), on each run. These are so far the only ideas I have: ...
0
votes
1answer
95 views

DNSSEC - Recommended parameters

Does anybody know which could be the recommended values for RRSIG validity period and resign interval? Regards
5
votes
3answers
7k views

How to pass $_GET variables to a PHP script via the command line?

I am trying to create a webserver that serves PHP scripts. Currently, it works as follows: The client requests /index.php?test=value The server invokes php index.php The server feeds the HTTP ...
4
votes
5answers
4k views

Parse HTTP requests through Wireshark?

Is there any way to parse HTTP request data in wireshark? For example, can I expose the request parameters upon an HTTP GET request (being sent by my machine), so that I don't need to read the ...
4
votes
1answer
9k views

tomcat processParameters complains about “invalid chunk ignored”

I am hosting a software system running under tomcat for quite a number of customers. Some of these send invalid URLs as request. These URLs may contain "&=" or "&&", which is not within ...
1
vote
2answers
4k views

Linux boot: Can I prevent the loading of a module using a boot parameter?

I know that I can blacklist a module in /etc/modprobe.conf or /etc/modprobe.d/blacklist, but I have a nasty module which loads before the filesystems are mounted (except /boot of course), so I assume, ...
0
votes
4answers
5k views

Iterating through folders and files in batch file?

Here's my situation. A project has as objective to migrate some attachments to another system. These attachments will be located to a parent folder, let's say "Folder 0" (see this question's diagram ...
0
votes
2answers
7k views

Oracle 11gR2: NLS_CHARACTERSET accidentally removed with an UPDATE-Query

I have a fresh installation of Oracle 11gr2_x64 on CentOS. After the installation I wanted to get productive and started to import my dumps. One of the dumps caused characterset error so I tried to ...
1
vote
1answer
2k views

AIX network parameters to close TCP sockets of unplugged devices

We have an AIX box, running what we call in banking "ATM Switch" not the ATM networking switch, but the bank ATM driver. where we have some ATM machines connected to two server processes. The problem ...
1
vote
3answers
668 views

How to find out what parameter was passed to a Windows Service

How do you find out what parameter was passed when starting a Windows service? I usually start a service thru net start by passing parameters as shown below net start DocumentHashService /Recursive ...
2
votes
2answers
122 views

What commands are being sent to an exe?

I have an application that calls a console based application when I open a file. I would like to somehow "spy" on this console application so that when it gets called I would like to see what command ...
0
votes
1answer
460 views

Verify Kernel Boot Parameters

Long story short, I'd like to verify that Centos actually booted / used the kernel flags/parameters I specified in /etc/grub.conf Is there a command I can type that will show me details on the kernel ...
1
vote
1answer
239 views

Can Group Shell (gsh) use a default host list?

Question concerning gsh - I could not find the information in the man page or on the developers page: Is there a way to define a default list of hosts to connect to? I do not want to always use the ...
1
vote
3answers
449 views

Batch file link with parameters

I have a script which generates an Email with information based on the computer it was just run on. In the Email there is also a link to another batch file (which runs an exe) that I would only need ...
0
votes
4answers
106 views

How do I do a net search for command-line parameters?

General Question: Let's say I'm using a command called bar and want to learn more about the -foo option. (Perhaps the man page didn't talk much about it). How can I search the internet for it? If ...
6
votes
2answers
410 views

Bash script parameters

I need to write a bash script, and would like it to parse unordered parameters of the format: scriptname --param1 <string> --param2 <string> --param3 <date> Is there a simple way ...