Search Results

Search: Posts Made By: RiSk
7,261
Posted By RiSk
you mean vixiecron?
you mean vixiecron?
7,261
Posted By RiSk
if you can install fcron it will support more...
if you can install fcron it will support more complex time arguments, if you are forced to use standard cron, try this.


0 0,3,6,9,12,15,18,21 * * * rm -r /folder1/folder2/somefile.txt
23,383
Posted By RiSk
netcat nc -vz -w 10 ip port just be...
netcat

nc -vz -w 10 ip port

just be aware that the [[:digit:]] will not work in hpux, nor do you really need it, you can take my bash code below and fill in your details.




#!/bin/bash
...
6,570
Posted By RiSk
Formatting output from iostat
So I use Cacti for monitoring IO statistics on my servers, now originally I couldnt monitor Multipath deviced servers as they have alot of /dev/sdxx and /dev/emcpowerxx, I have devised a method of...
Forum: Red Hat 07-23-2009
5,289
Posted By RiSk
nitin I was thinking the same thing but he is...
nitin I was thinking the same thing but he is probably running Red Hat Linux 4 and not RHEL4
Forum: Red Hat 07-23-2009
5,289
Posted By RiSk
you must boot into single user mode, then...
you must boot into single user mode,

then run fdisk -l, this will give you a list of your disks, then fsck the disk... they could be like /dev/sda or /dev/hda.

the reason you dont see anything...
5,301
Posted By RiSk
if you are using bash, just place your user_text...
if you are using bash, just place your user_text inside of an array.
8,526
Posted By RiSk
what do you mean compare? you could use "diff"...
what do you mean compare? you could use "diff" but that will only tell you the difference between the files. What are you ultimately trying to do?
Forum: Red Hat 07-23-2009
3,571
Posted By RiSk
you are correct, the #! line tell the shell what...
you are correct, the #! line tell the shell what to run the "script" under.
Forum: Red Hat 07-23-2009
5,289
Posted By RiSk
Okay, So reboot the box, append to the end...
Okay,

So reboot the box, append to the end of grub "single" and boot the os; after you are at the bash prompt run fsck /dev/sda1 (or w/e your drives are) and make sure they pass an fsck. If all...
1,548
Posted By RiSk
go to the remote machine and type "which yes" if...
go to the remote machine and type "which yes" if you get nothing back you do not have the command "yes"

Im guessing the remote box is a Sun server as your using pkgrm, and I think "yes" is in...
3,513
Posted By RiSk
Because I know no better :p But that fixed...
Because I know no better :p

But that fixed it !
53,046
Posted By RiSk
Why are you echoing.... JUST RUN THE COMMAND. ...
Why are you echoing.... JUST RUN THE COMMAND.

ssh HostB hostname

it will ssh and then execute the command, I dont understand why this is hard?
3,513
Posted By RiSk
Well, the problem is, when it updates the...
Well, the problem is, when it updates the password with that the password truely IS {$bu!d1t} when I need it to be $bu!d1t, any ideas?
53,046
Posted By RiSk
why would you not just do ssh id@server hostname ...
why would you not just do ssh id@server hostname


[risks-macbook] ~ > hostname
risks-macbook
[risks-macbook] ~ > ssh risk@xxxx.com hostname
risk@xxxx.com's password:
li27-239...
3,513
Posted By RiSk
TCL/Expect not working as expected
I am having an issue with TCL\Expect; I am passing arguments via the commandline that are read in via "lrange $argv". One of those var's is a password with characters that need to be escapaed, after...
3,731
Posted By RiSk
rchirico, its because you did not close off...
rchirico, its because you did not close off number 5 with a ;;, copy and paste mine and try it. I know it works :)



risk@Heavyarms [238] --> cat ./test.sh
#!/bin/bash
# Cool Script for Weekly...
3,731
Posted By RiSk
Here ya go; #!/bin/bash # Cool Script...
Here ya go;


#!/bin/bash
# Cool Script for Weekly Assignment 2 (#3) that creates a menu to act as a ui
# and run some popular commands.
clear
while :
do
clear
echo...
8,759
Posted By RiSk
use grep -c 226, oneless pipe :)
use grep -c 226, oneless pipe :)
53,046
Posted By RiSk
its because everything inside of the `'s are...
its because everything inside of the `'s are executed before leaving your host.

just do the ssh host command


risk@Heavyarms [164] --> ssh zhilliard@xxxxxxx hostname;hostname...
Showing results 1 to 20 of 20

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