Search Results

Search: Posts Made By: nanz143
3,754
Posted By Don Cragun
What is the output from the command: ls -ld...
What is the output from the command:
ls -ld /cache /format
And, exactly what command or commands are being used to mount filesystems on /cache and on /format?
1,891
Posted By Don Cragun
I wasn't trying to create a valid date a year...
I wasn't trying to create a valid date a year ago; I was just looking for a number representing a year ago that we can compare to a number representing some other arbitrary date. Except for leap...
1,891
Posted By RudiC
date +%Y%m%d 20151022 is just a number....
date +%Y%m%d
20151022
is just a number. Subtracting 10000 will result in a number representing one year ago. (May fail on certain dates, e.g. 29. Feb.)
1,891
Posted By Don Cragun
As I said before, use the for loop in the shell...
As I said before, use the for loop in the shell if you want to use the date in the filename to determine which files are a year old and use find if you want to use the last modification time of the...
1,891
Posted By RudiC
Why don't you give it a try (by just printing the...
Why don't you give it a try (by just printing the resulting file names)? It will make find search only the uppermost directory.
1,891
Posted By Don Cragun
Even if you had matching single quotes in your...
Even if you had matching single quotes in your grep command, the last three lines shown in your output would not be there because a line that does not contain the string Ft will not match the BRE...
7,144
Posted By RudiC
This depends on what you want to achieve, which...
This depends on what you want to achieve, which still escapes me. Do you want the variables defined on your local machine? Or on the remote host? Where should that while loop be executed, locally or...
7,144
Posted By RavinderSingh13
Hello nanz143, I think you should do like...
Hello nanz143,

I think you should do like below to do so.We can make a script to gather the processes information during ssh.
Let's say we have a scrpit in our local machine which has following....
7,144
Posted By RavinderSingh13
Hello nanz143, Could you please change...
Hello nanz143,

Could you please change following in your code, hope this helps.

ps -ef | grep ccms | awk '{print $1}' > /tmp/file.txt
ps -ef | grep mss | awk '{print $1}' >> /tmp/file.txt

...
Forum: Red Hat 11-10-2014
12,568
Posted By RavinderSingh13
Hello nanz143, I mean to say here...
Hello nanz143,

I mean to say here /etc/fstab the file is read by the mount command, which happens automatically at boot time to determine the overall file system structure, and thereafter when a...
Forum: Red Hat 11-10-2014
12,568
Posted By RavinderSingh13
Hello nanz143, It completly depends on...
Hello nanz143,

It completly depends on either you are root or you are from a application team. As per my knowledge most of teams they will have their own user accounts they will be super users of...
3,404
Posted By gull04
Hi, If you think that a dirctory has been...
Hi,

If you think that a dirctory has been deleted, either by mistake or maliciosly - then you'll need to take this to the systems admins. You could request that people send you the output from the...
3,404
Posted By RudiC
If you don't have those permissions by default,...
If you don't have those permissions by default, that will be for a reason. If you now have good reasons for the research, the system admins will help you by either looking themselves or...
3,404
Posted By gull04
Hi, If you are unable to see the history...
Hi,

If you are unable to see the history files of other users (this is correct) then you have limited options.

There is the "who" command that will show you who is actually logged on and the...
1,866
Posted By Michael Stora
I usually use comma delimited output for Excel...
I usually use comma delimited output for Excel you can do this by setting OFS or adding commas to your print line.

Mike
1,866
Posted By Akshay Hegde
Try this script #!/bin/bash ...
Try this script

#!/bin/bash

from="sender@domain.org"
to="receiver@domain.org"
subject="test subject"
body="test message"

# string more detail read this...
1,866
Posted By rbatte1
If that doesn't work, you could try one of...
If that doesn't work, you could try one of these:-
save the file as a .txt and when you open it with Excel you will be prompted for information including the delimiters. You can set a space there,...
1,866
Posted By Akshay Hegde
The default value of the field separator FS is a...
The default value of the field separator FS is a string " " containing a single space, awk splits an input record into fields is controlled by the field separator. In your case if you want to open in...
1,612
Posted By Makarand Dodmis
Buddy trytr ',' '\t' < mak.txt > mak.xls Here...
Buddy
trytr ',' '\t' < mak.txt > mak.xls
Here delimeter is comma..change the command if your delimeter id different
1,612
Posted By Makarand Dodmis
Hi Mate tryperl -MPOSIX -le 'print strftime...
Hi Mate
tryperl -MPOSIX -le 'print strftime "%Y_%m_%d", localtime(time + 86400)'
1,612
Posted By Makarand Dodmis
try#tomorrow perl -e 'print scalar...
try#tomorrow
perl -e 'print scalar localtime(time + 86400), "\n";'
#2nd day or day after tomorrow
perl -e 'print scalar localtime(time + 86400*2), "\n";'
#3rd day from today
perl -e 'print...
15,746
Posted By bakunin
The principle is quite simple: programming means...
The principle is quite simple: programming means building blocks, from which to build bigger blocks - you build bricks, then walls from bricks, then houses from walls, etc.. If you take care that the...
15,746
Posted By bakunin
Your pasted scrpit code code seems to be missing...
Your pasted scrpit code code seems to be missing the first few lines, but this is probably a typo too. Also your line:

[v287980@attir50 /]$ grep -c "$iCurrDay /usr/local/wam/scripts/attempts.log ...
15,746
Posted By bakunin
If this line is really "working in Linux", then...
If this line is really "working in Linux", then Linux must be wrong. Compare this line to what i wrote:

iNrOfAttempts=$(grep -c "$iCurrDay" "$fLog")

"iNrOfAttempts" is a variable, which gets...
15,746
Posted By bakunin
Exactly. In general, whenever you mention a file...
Exactly. In general, whenever you mention a file in a script you should ALWAYS do it with a full path. This way the script will work regardless of where it is run from.



This is exactly what...
Showing results 1 to 25 of 61

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