Search Results

Search: Posts Made By: Just Ice
2,505
Posted By Just Ice
use 'cat -n' on the tailing pipe if you want to...
use 'cat -n' on the tailing pipe if you want to avoid funky awk ...
[book@room ~]$ echo 'a,b,c,d' | tr ',' '\n' | cat -n
1 a
2 b
3 c
4 d
[book@room ~]$
1,846
Posted By Just Ice
try again ...
try again ...
echo "$Hostname,MISSING,HMCBackup" | tr ',' '\t' >> $BackupMsg

recheck your edits. if still an issue, post your edited code.
1,846
Posted By Just Ice
number of hostname characters throwing off tab spacing
your issue is with the number of characters in your hostname (i.e, fcop23 has 6 and ecopc22 has 7) that is throwing off the tab spacing since tab is placed in relation to the last character of the...
2,504
Posted By Just Ice
your double quotes are wrong ...
if you look at the red-colored characters below, you will see that you have 2 groupings of "command arguments" with the '&&' operator in between.
ssh -l username@hostname "echo "( cd...
2,743
Posted By Just Ice
try again ... without the commas in any of the...
try again ... without the commas in any of the lines this time ...
ftp -i -n <<EOF
open $theRemoteHost
user $theRemoteUserName
$theRemotePassword
cd $theRemotePath
ascii
put $theLocalFileName...
120,768
Posted By Just Ice
is the remote server a windows box? if yes,...
is the remote server a windows box?

if yes, does your ftp process work on the command line by itself? what is the process you take to get this going?

if no, you need to give the proper user...
12,731
Posted By Just Ice
the issue with your printline function is that...
the issue with your printline function is that nobody will see anything on the screen since all echo statements are being redirected to the log file ...

you would be better off redirecting the...
2,509
Posted By Just Ice
what was the command you use to execute the...
what was the command you use to execute the script?

also, what are the permissions of the script? post output of ls -l foo
12,731
Posted By Just Ice
please change your code highlight to "CODE" from...
please change your code highlight to "CODE" from "ICODE" ...

also, you are imo overscripting the process ... this is fine if you have the time except that it also increases the possibilities of...
3,099
Posted By Just Ice
you are trying to run an interactive script...
you are trying to run an interactive script non-interactively ...
echo " if you want to record the cpu utilization for specific time period press y else press enter "
read ip
you need to make the...
Forum: Solaris 08-08-2013
1,880
Posted By Just Ice
you might want to post the actual console error...
you might want to post the actual console error messages ...

also, did you confirm that /etc/vfstab is now correct? were any of the filesystems mirrored or striped?

what exactly did you change?
2,509
Posted By Just Ice
see samples below ... both forms mean the same...
see samples below ... both forms mean the same thing ... modify as you see fit ...
#! /bin/ksh
PATH=/dir

file1.py && \
file2.py && \
file3.py && \
file4.py

exit 0
or ...
#! /bin/ksh...
Forum: Solaris 08-08-2013
16,296
Posted By Just Ice
you probably started the truss run before you...
you probably started the truss run before you started pkgadd ... the command line i gave would have given you the pid of pkgadd without looking for it separately through ps ... however, the pkgadd...
1,257
Posted By Just Ice
format for /etc/sudoers file ... who where =...
format for /etc/sudoers file ...
who where = (as_whom) what
the sample below will allow jack to only run /dir/command only on host17 only as user jill ... see man sudoers for more info ...
jack...
Forum: Solaris 08-08-2013
16,296
Posted By Just Ice
run truss on the pkgadd (see code below) in a...
run truss on the pkgadd (see code below) in a different window to see if there is anything there that can give you a hint on what is going on ...
truss -p $(ps -ef | grep pkgadd | grep -v grep | awk...
6,636
Posted By Just Ice
first off, assistance you receive on this website...
first off, assistance you receive on this website is offered by unpaid volunteers on their own time -- that includes me -- so it would be good to maintain a professional tone ...

second, your...
6,636
Posted By Just Ice
your awk '+$4 >= 70 {print}' is actually looking...
your awk '+$4 >= 70 {print}' is actually looking for a value equal to or greater than 70 in column 4 of the df -g output as per your requirement ... not want the Filesystem line? just grep it out...
1,207
Posted By Just Ice
try code below to kill all the user's ssh logins...
try code below to kill all the user's ssh logins at once ...
kill -9 $(ps -ef | grep $user | grep root | awk '{print $2}')
6,636
Posted By Just Ice
i have no access to an aix box so i will take...
i have no access to an aix box so i will take your word about the df -g output ... see below for modified code based on your requirements ...
df -g | awk '+$4 >= 70 {print}' > report.txt
if [ ! -s...
6,636
Posted By Just Ice
what os and version are you using? i just tried...
what os and version are you using? i just tried df -g on centos, ubuntu and opensuse where i got the illegal option error on "-g" ... i tried on solaris 10 and df -g does not give me a percent result...
Forum: Solaris 08-08-2013
16,296
Posted By Just Ice
run kill -9 $(ps -ef | grep pkgadd | grep -v grep...
run kill -9 $(ps -ef | grep pkgadd | grep -v grep | awk '{print $2}') prior to running pkgadd as well as remove any lockfiles ...

check for any other pkg processes and then retry pkgadd again if...
Forum: Ubuntu 08-08-2013
6,768
Posted By Just Ice
the MTA (mail transfer agent) issue does not seem...
the MTA (mail transfer agent) issue does not seem to be related to your script as it shows up in the logs more than a few minutes before your script runs and the script/program creating the log...
1,295
Posted By Just Ice
the tool/command you use will eventually read the...
the tool/command you use will eventually read the whole file based on your requirements ...

however, see this thread...
2,619
Posted By Just Ice
shorter version ... for file in * do [...
shorter version ...
for file in *
do
[ -f $file ] && echo $file
done
Forum: Ubuntu 08-08-2013
6,768
Posted By Just Ice
does your script have PATH variable set or at...
does your script have PATH variable set or at least the commands have their full paths (i.e., /bin/hostname instead of hostname, /usr/bin/rm instead of just rm, etc.)? if yes, look at something else...
Showing results 1 to 25 of 500

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