Search Results

Search: Posts Made By: getrue
1,325
Posted By MadeInGermany
SysV Unix does not store the year in wtmp. Most...
SysV Unix does not store the year in wtmp.
Most if not all Unix vendors have migrated to own extended wtmp files, named wtmpx or wtmps.
When adapting the last command, some vendors added new...
2,709
Posted By Aia
There MUST be spaces between the brackets and...
There MUST be spaces between the brackets and condition. Right now there is not.
if [[ $up -gt 365 ]] && [[ $up -lt 730 ]]; then

Do not know what you are try to accomplish here:
echo "$hostname...
2,709
Posted By Don Cragun
Assuming that awk '{print$3}' doesn't produce a...
Assuming that awk '{print$3}' doesn't produce a syntax error with the version of awk you're using, the variable up will be set to a number. For example, if the output of uptime is:
16:18 up 32...
2,709
Posted By Don Cragun
Hi Aia, With test expression and with [...
Hi Aia,
With test expression and with [ expression ], you are absolutely correct; the elements of expression and the command name must be separated by spaces. But since [[ and ]] are part of the...
2,709
Posted By Aia
[aia@ludus]$ cat test.sh #!/usr/bin/ksh ...
[aia@ludus]$ cat test.sh
#!/usr/bin/ksh

set -x

number=3
if [[ $number -gt 1 ]] && [[$number -lt 4 ]]; then
echo "$number"
fi
[aia@ludus]$ ./test.sh
+ number=3
+ [[ 3 -gt 1 ]]
+...
2,709
Posted By Don Cragun
Right... Sorry about that. So, why is the...
Right... Sorry about that.

So, why is the OP reporting that the results are empty instead of reporting that there are diagnostics from ksh?
Forum: Red Hat 07-24-2012
36,781
Posted By admin_xor
sethostid is a a C function defined in unistd.h...
sethostid is a a C function defined in unistd.h header file.

If you want to generate a new host ID, you may use /sbin/genhostid program which generates a random host id and writes to /etc/hostid...
Forum: Solaris 03-20-2012
3,329
Posted By bartus11
It is possible that some big file(s) were deleted...
It is possible that some big file(s) were deleted while they were (and are) still used by some application. Do you know if any applications are using files from that filesystem? If they are try...
Forum: Solaris 02-25-2012
19,165
Posted By admin_xor
Thanks! Everything seems to be fine. Looks like...
Thanks! Everything seems to be fine. Looks like we need to give the service a little push after cleaning up things. Could you please execute these commands and check?


svcadm clear...
Forum: IP Networking 12-04-2011
6,035
Posted By dude2cool
Hopefully this helps: blackbyte's corner:...
Hopefully this helps:

blackbyte's corner: vsftpd passive mode & iptables (http://www.krzalic.com/2011/09/vsftpd-passive-mode-iptables.html)
Forum: Red Hat 09-07-2011
15,387
Posted By zaxxon
Try it like this: */3 * * * * /root/ping.sh...
Try it like this:

*/3 * * * * /root/ping.sh > /tmp/ping.log 2>&1
*/5 * * * * /root/ntopdump.sh > /tmp/ntopdump.log 2>&1

This will redirect stdout and stderr to those 2 log files. There should...
Forum: Solaris 08-12-2011
20,643
Posted By dude2cool
gcc no input files just means you did not give...
gcc no input files just means you did not give the compiler any files to compile :), but it proves your gcc is working, so nothing wrong with gcc.

Do this on your shell, once you login:

export...
Forum: Ubuntu 08-01-2011
2,200
Posted By Tecaze
Try this command: ls -lct /etc | tail -1 |...
Try this command:

ls -lct /etc | tail -1 | awk '{print $6, $7}'
Forum: Ubuntu 08-01-2011
2,200
Posted By yazu
Sorry. It's my alias. Change it to ls -l.
Sorry. It's my alias. Change it to ls -l.
Forum: Red Hat 07-20-2011
11,309
Posted By pludi
First, prefixing anything with '%' tells sudo to...
First, prefixing anything with '%' tells sudo to interpret that as a group, not a single user.
Second, as I said before: sudo doesn't automagically elevate your privileges. You have to invoke it...
Forum: Red Hat 07-25-2011
11,309
Posted By venikathir
temp is a group ? ok u have a user called...
temp is a group ?
ok
u have a user called sysadmin
u want to give the restricted sudo access u can use like the below
add the below line in sudo file

sysadmin ALL= /bin/vi /etc/hosts,/bin/vi...
Forum: Solaris 07-25-2011
9,924
Posted By agama
I completely missed that your first example would...
I completely missed that your first example would run only on the third minute after the hour!!

The error is coming from the 60. Use 0,3,6... and drop the 60. Also, unless your script resides...
Forum: Solaris 05-03-2011
5,706
Posted By DukeNuke2
boot net -s will boot the server over network...
boot net -s
will boot the server over network to a single user shell! you can mount the internal drive and do needed changes...
Forum: Solaris 08-19-2010
4,736
Posted By Mack1982
enter this command in the users .profile file in...
enter this command in the users .profile file in the users home directory
in case of root try the .bash_profile, assuming you are using bash,...
Showing results 1 to 19 of 19

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