10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I am trying to store some output in a file and then compare it to another file.
I am gathering information from 2 commands:
cat /opt/jbin/server.log.tmp > A
grep "ephemeral" /opt/jbin/log/server.log.2015-05-02-18 > B
The contents of both file are the same. This means if I do a... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
2. Shell Programming and Scripting
I am struck up with a problem and that is with output redirection.
I used all the ways for the redirection of the output of c binary to a file, still it is failing.
Here are the different ways which I have used:
./a.out | tee -a /root/tmp.txt 2>&1
./a.out | tee -a /root/tmp.txt 1>&1
./a.out |... (2 Replies)
Discussion started by: Maya29988
2 Replies
3. Shell Programming and Scripting
I have a common data folder with files like x* which is accessed by 3 unix servers.
Now each server will try to pick one file form this folder and move it to its local folder.
How to maintain file concurrency in this case?I dont want the same file to be accessed by more than one process. (2 Replies)
Discussion started by: prasperl
2 Replies
4. Shell Programming and Scripting
Hello;
Am trying to generate runaway proc report using ssh thusly:
===================
ssh -t -t $BOX 'TERMINAL="vt100" top -d1 -h -n 10' >> $FILE
.
.
cat $FILE | mail -s "Latest Top `date`" $MAIL_TO
====================
But the output to e-mail comes out rather garbled ..
Any ideas... (1 Reply)
Discussion started by: delphys
1 Replies
5. Shell Programming and Scripting
hi,
i was using with success the following rsh statement :
rsh server -l user1 "> /var/spool/mail/user1"
to clear all the mail by remote
now i try to do the same with ssh without success :
ssh -t newuser@server "sudo -u user1 '> /var/spool/mail/user1'"
i'm not authorized to... (17 Replies)
Discussion started by: Nicol
17 Replies
6. Red Hat
Hi guys,
I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.
I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also... (1 Reply)
Discussion started by: rockf1bull
1 Replies
7. Shell Programming and Scripting
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies
8. Shell Programming and Scripting
Hi Guys,
my $cmd = "ls -l"; #........ {or let it be as # my $cmd= "ls"; }
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd("$cmd");
print $stdout;
the script works fine, but i am unable to see the output getting displayed in a... (7 Replies)
Discussion started by: gsprasanna
7 Replies
9. UNIX for Dummies Questions & Answers
Hi
I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source .
Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies
10. UNIX for Dummies Questions & Answers
Is it possible to sh a command and receive the standard output on the scrren and use file redirection ie ls -lt > test. Also On SCO-UNIX there was a tellme command which displayed a message when a script had finished running is there something similar for HP UNIX as it is not working. (4 Replies)
Discussion started by: namtab
4 Replies