Search Results

Search: Posts Made By: rikxik
5,281
Posted By rikxik
Almost exactly same issue is raised in this...
Almost exactly same issue is raised in this thread: https://www.unix.com/shell-programming-scripting/169805-sftp-automation-script-not-working.html

I think you can just join the thread - better...
8,552
Posted By rikxik
I think you cannot supply password in batch...
I think you cannot supply password in batch (non-interactive) mode in SFTP (unless you are using automation tools like expect see (How To Expect | Linux Magazine (http://www.linux-mag.com/id/699/))....
2,351
Posted By rikxik
The command looks ok. Post your error.
The command looks ok. Post your error.
1,378
Posted By rikxik
How big is your value? Some examples?
How big is your value? Some examples?
2,347
Posted By rikxik
You should provide a sample of the contents of...
You should provide a sample of the contents of $file which show the string "THERE WAS NOT ENOUGH DATABASE TIME FOR ADDM ANALYSIS". Also, I think you should check the basic usage of grep; your code is...
3,394
Posted By rikxik
Shell independent option: nawk -v q="'"...
Shell independent option:


nawk -v q="'" '{ print "select * from bus_event where acct_nbr = " q $1 q ";"}' infile
2,347
Posted By rikxik
grep searches in file. You are creating a...
grep searches in file. You are creating a variable called file (thats why you are putting $ in the front) - its not the same thing.
5,815
Posted By rikxik
I thought that it was working for you till the...
I thought that it was working for you till the join command. So I just added the nawk part. I think you need to review the awk/join cmd.
38,704
Posted By rikxik
#!/usr/bin/perl use POSIX; my ($nSlices,...
#!/usr/bin/perl
use POSIX;

my ($nSlices, $bdec, $adec, $rnd);
print "Enter a number = ";
$nSlices1 = <STDIN>;
($bdec, $adec ) = split( /\./, $nSlices1 );
$adec = substr($adec,0,1);

print...
5,948
Posted By rikxik
I like that OK KO thing :) [ "$(echo...
I like that OK KO thing :)

[ "$(echo "[s-z]*.pbrt")" != "[s-z]*.pbrt" ] && echo OK || echo KO
4,380
Posted By rikxik
I think if we have to do 20k loops, better use...
I think if we have to do 20k loops, better use nawk:


nawk -F"|" '{system("/usr/local/mystro/scripts/mdiags cid reg "$1" "$2)}' IP


Or


tr "|" " " < IP |xargs -I {}...
5,948
Posted By rikxik
if [ ! -z "`ls | egrep "[s-z]\.pbrt+$"`" ] ; then...
if [ ! -z "`ls | egrep "[s-z]\.pbrt+$"`" ] ; then
echo "Found"
else
echo "Not found"
fi
10,408
Posted By rikxik
Your if block is not closed by a "fi".
Your if block is not closed by a "fi".
2,183
Posted By rikxik
That assumes all the files are in the same top...
That assumes all the files are in the same top level directory. But that gives this idea:


$ find . -name "core.*" -print
./abc/core.200
./abc/core.12xyz
./core.153498
./core.1...
1,242
Posted By rikxik
Both commands basically do the same thing.
Both commands basically do the same thing.
1,535
Posted By rikxik
for i in `ls -1 stat_?_???|cut -d"_" -f3|sort -u`...
for i in `ls -1 stat_?_???|cut -d"_" -f3|sort -u` ; do
tar czvf /stored/files${i}.tar.gz stat_?_$i
done
7,479
Posted By rikxik
Add the below entry at the end of you .profile...
Add the below entry at the end of you .profile (I'm assuming you are the only user who is interested in doing this):


PATH=$PATH:/opt/dialog/bin
export PATH


Logout/login and it should work...
10,408
Posted By rikxik
If you are on a linux system and all you care is...
If you are on a linux system and all you care is to do a one way sync from folderA to folderB, why don't you check out existing utilities like rsync or unison? I've used both and they are quite...
4,286
Posted By rikxik
1. Select from Web 2. Copy to Notepad. Select...
1. Select from Web
2. Copy to Notepad. Select the (") character in the dialog command (which looks same but is actually different from the usual double quote). Edit->Replace-> paste this character...
2,183
Posted By rikxik
$ ls core.* core.1 core.153498 ...
$ ls core.*
core.1 core.153498 core.919jasj core.abdijs
$ find . -name 'core.[0-9]*' -type f -print|grep "core\.[0-9]*$"
./core.153498
./core.1
38,704
Posted By rikxik
From perlfaq
From perlfaq
6,936
Posted By rikxik
find /path/to/some/where/ -name "*.pdf" | awk...
find /path/to/some/where/ -name "*.pdf" | awk '{print $5}'| uniq -d |while read name ; do
echo $name
done
11,661
Posted By rikxik
$ perl -ne 's/[^\: \/\d\n]//g; print "Result=" ....
$ perl -ne 's/[^\: \/\d\n]//g; print "Result=" . join(" ", split), "\n"' file
Result=090326 20:00 20090327 08:00
Result=25/03/2009 1524 27032009 17:30
3,223
Posted By rikxik
I suggest you use a sample config file with only...
I suggest you use a sample config file with only one parameter. Focus on finalizing the design with that. That will give you enough understanding to proceed.
54,371
Posted By rikxik
Because telnet has a client (telnet) and server...
Because telnet has a client (telnet) and server (telnetd) Most probably you have only installed the client.
Showing results 1 to 25 of 255

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