Search Results

Search: Posts Made By: mathbalaji
50,348
Posted By Corona688
Try it and see? It's possible that sshpass...
Try it and see?

It's possible that sshpass makes some effort to conceal the password once its passed. It could exec() again with different parameters and blank it. But even so, there'd be an...
50,348
Posted By Corona688
You can view the commandline arguments of running...
You can view the commandline arguments of running things via ps aux

The safest way to pass a password into something is a terminal, which is why traditional ssh insists upon it.

Some sort of...
50,348
Posted By DGPickett
You can: use the ssh cat twice to copy...
You can:

use the ssh cat twice to copy files through your host, or
go to one end with sshpass ssh and sshpass scp that end locally, so you can embed two sshpass commands, each for one host, or...
11,966
Posted By Corona688
Short answer, no. Long answer, nnnnno. This...
Short answer, no.

Long answer, nnnnno. This is quite impractical to do in pure shell. XLS is a complicated, proprietary, binary, microsoft thing which was opaque to most anything for a...
1,938
Posted By drl
Hi. If you wish to run them in parallel,...
Hi.

If you wish to run them in parallel, consider:
kanif - cluster management and administration swiss army knife
pdsh - Efficient rsh-like utility, for using hosts in parallel
among others.
...
1,660
Posted By DGPickett
Reverse trust is to allow the remote host PPKey...
Reverse trust is to allow the remote host PPKey access to the local host, so scripts there can connect without password and send commands, data from commands on the remote system, etc. Pull not...
1,660
Posted By franzpizzo
Hi some time ago I have bypassed a problem...
Hi
some time ago I have bypassed a problem using jsch.jar (http://www.jcraft.com/jsch/) in a Java procedure.
1,660
Posted By DGPickett
Yes, we answer this a lot. To discourage...
Yes, we answer this a lot. To discourage scripting with a password, it is read from /dev/tty not stdin.

You should set up PPKey authentication and not use a password. I think there are...
2,586
Posted By complex.invoke
[root@node3 ~]# cat infile a b c d e f g h...
[root@node3 ~]# cat infile
a b c
d e f
g h i
j k l

case1:

[root@node3 ~]# bash transpose infile
a d g j
b e h k
c f i l

case2:

[root@node3 ~]# awk '{print $3}' infile | bash...
145,419
Posted By complex.invoke
Tetris Game -- The Art Of Shell Programming
GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages (https://github.com/deepgrace/tetris)

Usage: bash Tetris_Game [ <runlevel> [ <previewlevel> [ <speedlevel> [...
25,536
Posted By shamrock
echo log*.txt | xargs -n1 cp /dev/null
echo log*.txt | xargs -n1 cp /dev/null
34
79,666
Posted By ungalnanban
Vim tips and tricks
Vim Tips and Tricks


Save and quit



:w => Save [:w filename writes the content to the specified file from current file]

:q => Exit as long as there have been no changes

:q! =>...
6,874
Posted By ungalnanban
Normally we use the "/" is the delimiter between...
Normally we use the "/" is the delimiter between string and replace string for substitution .
if you want to replace the "/" (delimiter) character that time you need to escape the "/" using "\".
...
201,197
Posted By stanleypane
^M is a carriage return. You should...
^M is a carriage return.

You should understand a few things first:

CR = \r = Carriage Return
LF = \n = Line Feed

In DOS, all lines end with a CR/LF combination or \r\n.
In UNIX, all lines...
Forum: Tips and Tutorials 12-28-2006
755,717
Posted By Perderabo
find command -mtime -ctime -atime
The find command uses arguments like:
-mtime -2
-mtime +2
-mtime 2

There are -ctime and -atime options as well. Since we now understand the differences among mtime, ctime, and atime, by...
Forum: Tips and Tutorials 07-31-2005
755,717
Posted By Perderabo
mtime, ctime, and atime
Unix keeps 3 timestamps for each file: mtime, ctime, and atime. Most people seem to understand atime (access time), it is when the file was last read. There does seem to be some confusion between...
80,609
Posted By Perderabo
Unix environments for MS Windows
We often get questions about how to provide a Unix environment under Windows. Mircosoft has several OS's that collectively are called Windows. Most users are running a recent Microsoft OS with an...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 12:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy