06-02-2011
Hi,
I found the solution. As per your suggestion, I got the error message and it said, an environment variable was not set. I set the environment variable in my script and now, the swadm command is working fine. Thanks a lot for the help.
This User Gave Thanks to jofinjoseph For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey everyone!
I hope someone here is good with Unix CGI scripts.
I'm having trouble with my CGI. Here's the deal
I've created a program that searches the passwd file and cuts the users real name when it's given the login name. When i converted it to CGI i ran into some problems:
1) when you... (3 Replies)
Discussion started by: primal
3 Replies
2. Shell Programming and Scripting
If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link?
Hope that makes sense!
:) (2 Replies)
Discussion started by: WIntellect
2 Replies
3. UNIX for Dummies Questions & Answers
I am totally new to unix commands but I need to understand the following command which is a part of a perl script..what does this mean?
myPwd = $(pwd)
myTracker = $myPwd/myTracker.out
exec > $myTracker 2>&1 (1 Reply)
Discussion started by: athri
1 Replies
4. Shell Programming and Scripting
Hi,
my script is setting a variable with value and this variable is present in my another command that is coming from external file and this command is internally called after this variable is set. but while execution of this command, the value is not retrieved properly.
say,
my script... (5 Replies)
Discussion started by: rbalaj16
5 Replies
5. Shell Programming and Scripting
I am trying to run SSH , mkdir and other unix commands using Perl CGI. But i am not able to Execute these commands.
Please help me out !!!!
SSH and mkdir is necessity for me.
I will be thankful to you...!!!!!
I am trying like:
In perl CGI file i am writing like: @list = `ssh... (28 Replies)
Discussion started by: Navrattan Bansa
28 Replies
6. Web Development
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies
7. UNIX for Dummies Questions & Answers
Hello. I need help trying to create a script in UNIX to do the following steps. I don't know which commands to input to achieve this.
1. In a directory tree, I want to duplicate all .txt files into the same directory, so 2 of each file exists in each directory where there is a .txt file
... (4 Replies)
Discussion started by: TitanTlaloc
4 Replies
8. Shell Programming and Scripting
Hi,
I have a CGI script, which includes a python custom header file. The cgi script calls a few functions.
Py file.
#resourcemanager creation
def make_rm(rmip,nip,nport):
fp = open("temp1.txt",mode="w")
fp.write('<?xml version="1.0"?>\n<!-- Licensed under the Apache... (2 Replies)
Discussion started by: adi.6194
2 Replies
9. Shell Programming and Scripting
data:
bblah1_blah2_blah3_blah4_blah5
bblahA_blahB_blahC_blahD_blahE
im using the following code to grab the field i want:
cat data | while IFS='_' read v1 v2 v3 v4 v5; do printf '%s\n' "${v4}"; done
im catting data here. in the real world, the exact content of data will be in a variable.... (4 Replies)
Discussion started by: SkySmart
4 Replies
nlspath(4) Kernel Interfaces Manual nlspath(4)
NAME
nlspath - NLSPATH configuration file
DESCRIPTION
The file allows the superuser to restrict the paths set by others through an environment variable to locate message catalogs for or root
programs.
This file contains only one entry with the following format:
pseudo-pathnames in this file should be absolute pathnames and must be separated by a colon. The paths which are available both in the
configuration file and environment variable are considered to locate message catalog files. The file should not be edited directly.
Instead, the command should be used to modify the contents of this file. See chnlspath(1M) for details.
If contains the file is in compatibility mode. In this case, all and root programs use the environment variable directly to locate message
catalogs. This configuration file is supported only to provide backward compatibility for those or root programs which are depending on
the environment variable New or root programs should not depend on the environment variable and configuration file
EXAMPLES
An entry in this file would typically look like:
WARNINGS
The configuration file must be root owned and there should not be write permission set for group and others. Superuser should not provide
write permission for group and others for the paths mentioned in the configuration file.
is provided only for compatibility with existing or root applications that make use of relative pathnames while invoking catopen(3C). New
or root applications must use absolute pathnames while invoking catopen(3C).
This file is to be obsoleted at a future date.
FILES
SEE ALSO
catopen(3C), chnlspath(1M), environ(5).
TO BE OBSOLETED nlspath(4)