Unix/Linux Go Back    

Showing results 1 to 25 of 206
Search took 0.03 seconds.
Search: Posts Made By: chakrapani
Forum: UNIX for Beginners Questions & Answers Linux 01-09-2017
Replies: 2
Views: 464
Posted By chakrapani
Some of the things Did you check with...

Some of the things



Did you check with cron logs?
$ tail /var/log/cron
What is the exit code of your script ? (pseudo code below)
0 0 * * * (./script_waits_4hrs_then_fails.sh ) && ( mail...
Forum: Emergency UNIX and Linux Support Linux 12-15-2016
Replies: 3
Views: 2,172
Posted By chakrapani
I made a named pipe and seems very close to...

I made a named pipe and seems very close to getting my solution of garbing HTTP headers, Also noticed my browser does not Always send all the header each time.
(Chrome Version 54.0.2840.99 even in...
Forum: Emergency UNIX and Linux Support Linux 12-14-2016
Replies: 3
Views: 2,172
Posted By chakrapani
Lightbulb Netcat ( nc -l ) as webserver

Dear Linux guru's

I am trying to create a webserver using nc (netcat only) on RHEL 7.2 running on bash shell.

now the easy thing is to get nc listing to a port and respond back

$ while...
Forum: Emergency UNIX and Linux Support Linux 09-14-2016
Replies: 2
Views: 1,418
Posted By chakrapani
Can you use File::Copy module ? use...

Can you use File::Copy module ?


use File::Copy;
copy("sourcefile","destinationfile") or die "Copy failed: $!";
Forum: Shell Programming and Scripting Linux 09-14-2016
Replies: 11
Views: 1,669
Posted By chakrapani
find $INBOUND_PATH -size 0 -print | xargs ...

find $INBOUND_PATH -size 0 -print | xargs

or use -s : file is not zero size

using awk with $5 is not the safe way
Forum: Solaris Linux 09-14-2016
Replies: 12
Views: 1,609
Posted By chakrapani
can you try $ date --date="2 day...

can you try

$ date --date="2 day ago"
Forum: UNIX for Beginners Questions & Answers Linux 08-22-2016
Replies: 26
Views: 1,513
Posted By chakrapani
if you are looking for a loop then you could use...

if you are looking for a loop then you could use a quick 'for' loop in the directory where match.pl file is present.



./match.pl -f 9464294024_R01C01header -g 9466656017_R01C01header -k 1 -l...
Forum: UNIX for Advanced & Expert Users Linux 08-21-2016
Replies: 13
Views: 7,315
Posted By chakrapani
This article data recovery - Unix/Linux...

This article

data recovery - Unix/Linux undelete/recover deleted files - Unix & Linux Stack Exchange (http://unix.stackexchange.com/questions/80270/unix-linux-undelete-recover-deleted-files)
...
Forum: Shell Programming and Scripting Linux 03-08-2016
Replies: 5
Views: 671
Posted By chakrapani
@RudiC: Thanks for that it works perfectly.

@RudiC:
Thanks for that it works perfectly.
Forum: Shell Programming and Scripting Linux 03-08-2016
Replies: 5
Views: 671
Posted By chakrapani
my requirement is: file.txt can have lines...

my requirement is:

file.txt can have lines starting with either A,I,X,W,C,P, ignoring header line starting with H at the beginning of the file
and footer line starting with E at the end of file....
Forum: Shell Programming and Scripting Linux 03-08-2016
Replies: 5
Views: 671
Posted By chakrapani
Extract between lines starting with and

I have a combination of patterns to search.

file.txt contains below:
H2016-02-10
A74867712
I1556539758
Xjdflk534jfl
W0000055722327732
W0000056029009389
A74867865
Forum: Emergency UNIX and Linux Support Linux 03-08-2016
Replies: 7
Views: 2,277
Posted By chakrapani
Xpath can be used like // till pattern ...

Xpath can be used like // till pattern ...
Forum: Homework & Coursework Questions Linux 01-21-2016
Replies: 6
Views: 3,540
Posted By chakrapani
Got it ... Thanks

Got it ... Thanks
Forum: Shell Programming and Scripting Linux 01-20-2016
Replies: 1
Views: 703
Posted By chakrapani
Found this thread devices - USB...

Found this thread

devices - USB connect/disconnect notification - Unix & Linux Stack Exchange (http://unix.stackexchange.com/questions/116536/usb-connect-disconnect-notification)

From the...
Forum: Homework & Coursework Questions Linux 01-20-2016
Replies: 6
Views: 3,540
Posted By chakrapani
i tested same log (copy paste) and -f option and...

i tested same log (copy paste) and -f option and it worked for me with space.

on FreeBSD with /usr/bin/cut
Forum: Shell Programming and Scripting Linux 01-20-2016
Replies: 4
Views: 1,724
Posted By chakrapani
I am not sure but there should be spawn to call...

I am not sure but there should be spawn to call command



#!/usr/local/bin/expect
spawn su -
expect "Password:" { send "passwd\r" }
expect "# " { send "uname -a\r" }
expect "# " { send...
Forum: Emergency UNIX and Linux Support Linux 01-20-2016
Replies: 7
Views: 2,277
Posted By chakrapani
I have used xmllint with huge files xmllint...

I have used xmllint with huge files

xmllint --format hugefile.xml >> hugefile_formatted.xml

to get formatted or use --shell option to get you values using xpath.
Forum: Homework & Coursework Questions Linux 01-19-2016
Replies: 6
Views: 3,540
Posted By chakrapani
1. Date range of the log. Hope they are sorted ...

1. Date range of the log. Hope they are sorted

Check the manual page for cut using

$ man cut


cut -f
-f list
The list specifies fields, separated in the input by the...
Forum: Emergency UNIX and Linux Support Linux 01-19-2016
Replies: 7
Views: 2,277
Posted By chakrapani
Option for sel (select) is using xpath. ...

Option for sel (select) is using xpath.

What is Xpath ? May be you might get some basics from URL:
XPath Tutorial (http://www.w3schools.com/xsl/xpath_intro.asp)


bash-2.03$ xml
XMLStarlet...
Forum: Shell Programming and Scripting Linux 01-15-2016
Replies: 12
Views: 1,200
Posted By chakrapani
Can you check perl version. I am assuming no perl...

Can you check perl version. I am assuming no perl modules are installed

---------- Post updated at 12:41 PM ---------- Previous update was at 12:27 PM ----------

Check this perl code. Works on...
Forum: Shell Programming and Scripting Linux 01-15-2016
Replies: 12
Views: 1,200
Posted By chakrapani
Any of these work ? The UNIX School: gawk -...

Any of these work ?

The UNIX School: gawk - Date and time calculation functions (http://www.theunixschool.com/2013/01/gawk-date-and-time-calculation-functions.html)

Can we use Perl instead ?
...
Forum: Shell Programming and Scripting Linux 01-15-2016
Replies: 12
Views: 1,200
Posted By chakrapani
I want to use system date. Can you check if date...

I want to use system date. Can you check if date +"%Y%m%d" works

My idea is to use
awk -v date="$(date +"%Y%m%d" )

So I get a variable made which can be compared
Forum: Shell Programming and Scripting Linux 01-15-2016
Replies: 12
Views: 1,200
Posted By chakrapani
So the assumption is $2 will be 20151222 or like...

So the assumption is $2 will be 20151222 or like YYYMMDD year month and day is this right ?
Forum: Shell Programming and Scripting Linux 01-15-2016
Replies: 12
Views: 1,200
Posted By chakrapani
Please confirm what shell you are using ...

Please confirm what shell you are using


echo $SHELL
or set command
Forum: Linux Linux 01-15-2016
Replies: 1
Views: 1,091
Posted By chakrapani
Usually there is a environment variable like...

Usually there is a environment variable like EDITOR or PAGER which use to handle key bindings

---------- Post updated at 11:42 AM ---------- Previous update was at 11:41 AM ----------

or use...
Showing results 1 to 25 of 206

 


All times are GMT -4. The time now is 01:44 AM.