10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm building a script that may received start and end date as parameters. I whant to make it as flexible as possible so I'm accepting epoch and date in a way that "date --date=" command may accept. In order to know if parameter provided is an epoc or a "date --date=" string I evaluate if the value... (2 Replies)
Discussion started by: lramirev
2 Replies
2. Shell Programming and Scripting
Hello,
I'm having some issues getting a home dir from a remote server passed to a variable.
Here is what I have so far:
rsh server "(ls -ld /home*/user | awk '{print \$9}')"
/home3/userThat works fine and brings back what I need.
But when I try to add it to a variable it goes all... (3 Replies)
Discussion started by: elcounto
3 Replies
3. Shell Programming and Scripting
Hello folks,
I've a (perhaps) simple question.
In a text file I've :
server_name1: directory1
server_name2: directory2
server_name3: directory3
I want to make a loop that lets me connect and operate on every server:
rsh server_name1 "ls -l directory1"
I've tried with awk,... (6 Replies)
Discussion started by: gogol_bordello
6 Replies
4. Shell Programming and Scripting
write a shell script that determines the period for which a specified user is workin on the system. (3 Replies)
Discussion started by: shawz
3 Replies
5. Shell Programming and Scripting
Hi,
I want to do a awk operation on a file on a remote machine.
I am using rsh for this.
rsh <remote> awk '{print $2}' process.txt
output:
awk: syntax error near line 1
awk:illegal statement near line 1
I can do the awk operation by logging into the remote machine.
Can... (1 Reply)
Discussion started by: eamani_sun
1 Replies
6. Shell Programming and Scripting
Hi , this peice of code is working for one file but not for multiple files.
Can some one please tell me the reason???
for i in `ls -1 | egrep ''SOM.*` ; do
filename=$(ls -1 $i)
filename=$(print $filename)
if ]
then
print "Skipping file $i since it already has... (1 Reply)
Discussion started by: somanath Patrud
1 Replies
7. Linux
Hi All,
I want to execute a command from my Windows machine to Linux machine.
d:> rsh <Linux machine add> -l <user_name> pwd>dir
in linux machine users home directory in .rhosts file I entered the windows machine IP address and user name.
In linux etc/hosts.equiv file I entered the... (1 Reply)
Discussion started by: sarwan
1 Replies
8. IP Networking
hi !
In my program I have a structure as shown below:
struct data
{
int a;
char *b;
long c;
}str;
i have assigned the following values to it:
strcpy(str.b,"John");
str.a=10;
str.c=123435;
The client is tryin to send struct data to the server using
send(sock,(char *... (2 Replies)
Discussion started by: mridula
2 Replies
9. UNIX for Advanced & Expert Users
Hi,
when a user use rsh command (or any other) , where is the executable used by him ?
Many thanks in advance. (1 Reply)
Discussion started by: big123456
1 Replies
10. Shell Programming and Scripting
I am trying to run a Perl script using rsh. I need to be able to capture the return code value, so the calling script can handle failures properly.
I cannot modify the Perl script I need to run because we use it for all of our servers.
Does anyone have a suggestion? (1 Reply)
Discussion started by: kscase
1 Replies