Search Results

Search: Posts Made By: MR.bean
Forum: Solaris 03-09-2015
1,060
Posted By MR.bean
Trying to understand the boot process
I understand the OBP program looks for the boot-device, loads the bootblk (located on physical disk sectors 1 through 15). Then the secondary boot program, /platform/`arch -k`/ufsboot is run. This...
Forum: Solaris 10-10-2014
2,443
Posted By MR.bean
Thanks. I wish that method worked, but executing...
Thanks. I wish that method worked, but executing your first step metattach d10 c0t0d0s7 gave me an error saying cannot expand root file system.

I ended up installing virtualbox and tried my...
Forum: Solaris 10-09-2014
2,443
Posted By MR.bean
Extending the / file system (SVM)
Hi,

I currently have a Solaris 10 server with the / root file system using SVM. Here is the information of the current setup.


Filesystem size used avail capacity Mounted on...
2,496
Posted By MR.bean
This is because of the ksh process itself when...
This is because of the ksh process itself when you execute the script
Should be:


sid_cnt=$(ps -ef|grep -w "$sid"|grep -v "grep" | grep -v "ksh" |wc -l)
1,198
Posted By MR.bean
$ perl -lne 'if(/create/ .. /Elapsed/) {...
$ perl -lne 'if(/create/ .. /Elapsed/) { if(/create\s+index\s+(.*)\s+on/) { $i = $1 } elsif(/^Elapsed:\s+(.*)$/) { $e = $1; print join("\t", $i, $e); } }' input
XYZ_F75 00:08:08.58
XYZ_F81...
8,868
Posted By MR.bean
bash-3.2$ cat x 12345678910121314151617181920...
bash-3.2$ cat x
12345678910121314151617181920 (Positions)
SAchin Tendular 100
Virat Kolhi 99
AAA BBBB 00
BBB XXX ...
3,559
Posted By MR.bean
i have no issue $ for i in January...
i have no issue


$ for i in January February March April May June July August September October November December ; do date -d "$i 10, 2013 04:05:00 AM CST" +%m/%d; done
01/10
02/10
03/10...
2,247
Posted By MR.bean
Without spawning the perl script in your expect...
Without spawning the perl script in your expect script, could you first check whether the bash scrpt could mount the cifs correctly. I have a feeling it the special characters of your password...
2,091
Posted By MR.bean
Assuming you have this input and you want the...
Assuming you have this input and you want the following output


$ cat xyz
primary
Factory CTS 1.9.0(46) P1
*Slot 1 CTS 1.10.2(42) P1
primary
Factory CTS 2.0.0(18) P1
*Slot 1 CTS 2.1.0(42)...
27,808
Posted By MR.bean
For bash, I believe the best you could do is to...
For bash, I believe the best you could do is to create a CSV file.
If you could do it in perl, making an excel file is possible.
1,498
Posted By MR.bean
Use param() of the CGI module to read user input ...
Use param() of the CGI module to read user input
see: CGI - search.cpan.org (http://search.cpan.org/~markstos/CGI.pm-3.63/lib/CGI.pm#FETCHING_THE_NAMES_OF_ALL_THE_PARAMETERS_PASSED_TO_YOUR_SCRIPT):
4,894
Posted By MR.bean
For LINUX, if you don't have to know the IP...
For LINUX, if you don't have to know the IP addresses of the interfaces, but just to enquire the status, mii-tool / ethtool also work. These commands might require root privilege to execute.
1,350
Posted By MR.bean
s/.*\/// - replaces everything in front of / with...
s/.*\/// - replaces everything in front of / with nothing
s/[^\/]*$// - replaces the characters in between the last / and the end of the string with nothing


if ( defined ( $opt_v ) )


if...
9,155
Posted By MR.bean
It's strange that you cannot use cat touch >, I'm...
It's strange that you cannot use cat touch >, I'm not sure what type of environment you are using that disallow you to use those typical commands. Use perl if you can


seq 1 5 | perl -lne '{...
1,144
Posted By MR.bean
Another one bash-3.2$ cat f1 547680 ...
Another one


bash-3.2$ cat f1
547680
575210
804270
123989
623989
221209
bash-3.2$ cat f2
1|4501892|547680|1|2|30|73491|12|34|1
2|4788930|575210|1|2|30|73472|12|34|1...
3,326
Posted By MR.bean
bash-3.2$ cat input.txt ^[[7m PID USER PR...
bash-3.2$ cat input.txt
^[[7m PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ^[[m^O^[[K...
2,001
Posted By MR.bean
The following does what you want du -ab . |...
The following does what you want
du -ab . | sort -nr | grep -i '.tar.gz$'
1,289
Posted By MR.bean
this would print everything and highlight the...
this would print everything and highlight the line containing the word "EXCEPTION"


tail -f *.log | awk '{ x=$0; if(/EXCEPTION/){ x= "\033[1;31m" $0 "\033[0m" } print x}'


replace EXCEPTION...
1,272
Posted By MR.bean
use: grep -o In your case: ls...
use: grep -o

In your case:

ls /dev|grep -io asm
1,467
Posted By MR.bean
open(FILE, ">run.log"); print FILE "$line\n"; ...
open(FILE, ">run.log");
print FILE "$line\n";
close(FILE);


This would write to run.log
9,272
Posted By MR.bean
As far as I see, you only copy files that are not...
As far as I see, you only copy files that are not on the md5sum list. I do not see you are doing any md5sum check against the files though.

Actually you could just use --ignore-existing of rsync...
4,892
Posted By MR.bean
I just use a text file instead of a real crontab...
I just use a text file instead of a real crontab file to test


bash-3.2$ cat c1
* * * * * cmd 1
* * * * * cmd 2
* * * * * cmd 3
bash-3.2$ cat c2
* * * * * cmd 4
* * * * * cmd 5
* * * * *...
1,211
Posted By MR.bean
bash-3.2$ awk 'BEGIN{x=1} /DEFINE SCHEMA/,/\)\;/...
bash-3.2$ awk 'BEGIN{x=1} /DEFINE SCHEMA/,/\)\;/ {if (NF==2) { $1="t"x" as filler"; print; x++ }}' filename



BEGIN{x=1}


Assign x with value "1". Then goes through the file.


/DEFINE...
1,211
Posted By MR.bean
Like that? bash-3.2$ awk 'BEGIN{x=1}...
Like that?


bash-3.2$ awk 'BEGIN{x=1} /DEFINE SCHEMA/,/\)\;/ {if (NF==2) { $1="t"x" as filler"; print; x++ }}' filename
t1 as filler VARCHAR(10)
1,660
Posted By MR.bean
bash-3.2$ cat txt...
bash-3.2$ cat txt...
Showing results 1 to 25 of 82

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