Sponsored Content
Top Forums Programming Hiding commnd line arguments in ps command on Linux Post 302905098 by achenle on Monday 9th of June 2014 02:54:35 PM
Old 06-09-2014
A bit late, but I'll toss it out there anyway:

Some OS's also make a copy of the initial command line arguments. For example, Solaris keeps a copy the first 80 characters of the initial command line arguments. In kernel space.

So even if you can write over the copy of the command line arguments passed into your program, that may not be the only copy.
 

10 More Discussions You Might Find Interesting

1. Programming

command line arguments

Hi How to pass multi line text as a command line argument to a program. (i.e) ./a.out hi this is sample 0 file1 where hi this is sample should be stored in argv 0 in argv and so on... (3 Replies)
Discussion started by: bankpro
3 Replies

2. UNIX for Dummies Questions & Answers

arguments in command line

Hi all, How many arguments can we pass while testing a prgm at command line.. I encountered an issue while passing 10 arguments. For $10 its taking argument passed for $1 followed by 'zero'. can we pass more than 9 arguments /Is there any other way. Thanks, rrs (6 Replies)
Discussion started by: rrs
6 Replies

3. Shell Programming and Scripting

i want to list all command line arguments except

Hi all i want to list out all command line arguments except $1 i have passed to a script. Ex: sh cmdline.sh one two three four five o/p: two three four five (3 Replies)
Discussion started by: naree
3 Replies

4. Shell Programming and Scripting

command line arguments

-------------------------------------------------------------------------------- I have this while loop and at the end I am trying to get it to tell me the last argument I entered. And with it like this all I get is the sentence with no value for $1. Now I tried moving done after the sentence... (1 Reply)
Discussion started by: skooly5
1 Replies

5. Shell Programming and Scripting

Getting error in command line arguments

Hi, When i am running the following script 1.sh (without giving the command line arguments) then i am getting the following error. if then echo "UID and PWD are correct" elif then echo "Either UID or PWD is wrong. Please check your UID and PWD" else echo "UID and PWD can't be blank"... (9 Replies)
Discussion started by: sunitachoudhury
9 Replies

6. UNIX for Dummies Questions & Answers

Command line arguments.

I am working on a script wherein i need the user to enter the Build ID for eg:the command line will show enter the build ID Now on entering the build ID it should be assigned to @ARGV. How can this be done.? (1 Reply)
Discussion started by: Varghese
1 Replies

7. Shell Programming and Scripting

Hiding processes / process arguments

Is there a way of hiding a process, or at the very least, process arguments? I'm writing a hosting panel (PHP), and I need to be able to adduser and do other tasks in which I do not want the arguments shown on the termnial for other users of the system. Thanks (0 Replies)
Discussion started by: jaymac407
0 Replies

8. UNIX for Dummies Questions & Answers

getopts - command line arguments

Hi, I'm having problems with a script where I wanted every single option specified in the command line to have an argument taken with it, but for some reason only d works in the code I will be showing below. For example if I did ./thisfile -a something it would come up with "a chosen with " as... (2 Replies)
Discussion started by: IceX
2 Replies

9. UNIX for Dummies Questions & Answers

command line arguments

hi, can someone how to accept command line arguments as a variable using in script? like: ./scriptname arguments by accept arguments, I can use it in my script? thx! (1 Reply)
Discussion started by: ikeQ
1 Replies

10. Shell Programming and Scripting

command line arguments

hi,,,, I want to create a command prompt, for example "prompt>", so my prompt need to handle commands, for example "prompt>cmd", so i want to know how to get arguments for my own commands cmd, i.e. default argc should contain arguments count and argv should point to the argument vector i.e, for... (2 Replies)
Discussion started by: vins_89
2 Replies
volcopy_hfs(1M) 														   volcopy_hfs(1M)

NAME
volcopy_hfs: volcopy, labelit - copy an HFS file system with label checking SYNOPSIS
[options] fsname special1 volname1 special2 volname2 [options] special [fsname volume DESCRIPTION
The command makes a literal copy of an HFS file system using a block size matched to the device. Options recognizes the following options: Specifies the HFS file system type. Invoke a verification sequence requiring a positive operator response instead of the standard delay before the copy is made. (default) Invoke the DEL-if-wrong verification sequence. Assume a response to all questions Echo the completed command line, but perform no other actions. The command line is generated by incorporating the user-specified options and arguments with other information derived from This option allows the user to verify the command line. Other options are used with 9-track magnetic tapes: Bits per inch. Size of reel in feet. Beginning reel number for a restarted copy. Use double buffered I/O. The command requests length and density information if they are not given on the command line and they are not recorded on an input tape label. If the file system is too large to fit on one reel, the command prompts for additional reels. Labels of all reels are checked. Tapes can be mounted alternately on two or more drives. If the command is interrupted, it asks if the user wants to quit or wants to escape to the command interpreter. In the latter case, other operations (such as executing the command) can be performed before returning to the command by exiting the command interpreter. fsname The file system name on the device (e.g., being copied. special The physical disk section or tape (e.g., or volname The physical volume name; it should match the external sticker. Such label names are limited to six or fewer characters. The argument volname can be to use the existing volume name. special1 The device from which the copy of the file system is being extracted. volname1 The volume from which the copy of the file system is being extracted. special2 The target device. volname2 The target volume. The command can be used to provide initial labels for unmounted disk or tape file systems. With the optional arguments omitted, the com- mand prints current label values. The option provides for initial labeling of new tapes only (this destroys previous contents). The and options can be specified for the command. The behavior of the and options is similar to their behavior in the command. SEE ALSO
fstyp(1M), volcopy(1M), fs_wrapper(5), disk(7), mt(7). volcopy_hfs(1M)
All times are GMT -4. The time now is 12:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy