Sponsored Content
Top Forums Programming Passing arguments to shellcode Post 302529211 by image28 on Wednesday 8th of June 2011 07:01:42 PM
Old 06-08-2011
Thanks

Reading about mmap now.
As for why I'm doing it, sort of a hobbie, write lots of ciphers and file hiding programs, thought I'd write one that can hide the resulting programs. Create a big maze of ciphered and hidden files and get my friends to try and find and decode them.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

passing arguments

I'm trying to pass a filename, or all the files in the current directory to the ls command with a script. Unsuccessful so far, here are a few of my attempts: #!/bin/ksh read fname #if (( $# > 0 )); then $fname | ls -l #fi this produces a long listing of all the files in my current... (4 Replies)
Discussion started by: jpprial
4 Replies

2. UNIX for Dummies Questions & Answers

passing strings as arguments

Is it possible to pass a string as an argument from the command line? I know I can pass a word in but can I put a line of text in with spaces and fullstops or do I just put it in brackets or quotes so the compiler can differinate between the first argument and the second. (1 Reply)
Discussion started by: iago
1 Replies

3. Shell Programming and Scripting

Passing Arguments-Help

Hi, I have a script which adds the user credentials to an ldap server. Im passing the variables as below.. /path/my_script $uname $pwd $environ ${deposit} If i enter some special characters like ';' in $pwd, script returns an error which is set to display if the user enters... (5 Replies)
Discussion started by: Tuxidow
5 Replies

4. Shell Programming and Scripting

passing arguments

Hi I have a script to which I pass multiple arguments, for example lets say the script name is "abc". I run the script like ./abc def /file <directory location> In the above "def" is the first argument and "/file" is the second argument. I expect <directory location> that is passed after... (4 Replies)
Discussion started by: zmfcat1
4 Replies

5. Shell Programming and Scripting

Passing arguments to the subshell

I have a shell script which is invoked by passing an argument. The outer shell script calls another subshell and I want the argument passed down to flow down to the subshell. E.g Invoking a shell ======>> abc_refresh.ksh NM Below is the content of abc_refresh.ksh Value1=$1... (7 Replies)
Discussion started by: Mihirjani
7 Replies

6. UNIX for Dummies Questions & Answers

Passing arguments

I need to pass arguments to a shell script.My batch is calling some java program. ################# x=$1 y=$2 java -classpath program ################### if first parameter and second parameter is null then java -classpath program if first parameter is not null and second parameter is... (3 Replies)
Discussion started by: mnjx
3 Replies

7. Shell Programming and Scripting

Passing arguments to csh

I have noticed this thing using csh when passing arguments Suppose I call a csh script using ../Scripts/plot-model.csh -vmod="npt02-z30.vmod" -R="0/80/0/30" -c="0/4.5" -aspr="1:10" Somehow the " get removed when doing $argv ending up with -vmod=npt02-z30.vmod... (0 Replies)
Discussion started by: kristinu
0 Replies

8. Shell Programming and Scripting

Passing arguments to python

How can I pass arguments to a python script??? (3 Replies)
Discussion started by: kristinu
3 Replies

9. Shell Programming and Scripting

Reading a string and passing passing arguments to a while loop

I have an for loop that reads the following file cat param.cfg val1:env1:opt1 val2:env2:opt2 val3:env3:opt3 val4:env4:opt4 . . The for loop extracts the each line of the file so that at any one point, the value of i is val1:env1:opt1 etc... I would like to extract each... (19 Replies)
Discussion started by: goddevil
19 Replies

10. Shell Programming and Scripting

Passing arguments--Error

Hi, i have a file.txt with data Bangalore Chennai Hyd filename of the script is: new.sh result=`cat file.txt | grep $1` if then echo pass else echo fail fi i am executing the file in the cmd line as "sh new.sh Bangalore" o/p is pass if i give "sh new.sh delhi" o/p is... (6 Replies)
Discussion started by: harsha85
6 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)
All times are GMT -4. The time now is 11:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy