Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: Just Ice
Forum: Shell Programming and Scripting Linux 10-18-2016
Replies: 12
Views: 519
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.
Forum: Shell Programming and Scripting Linux 10-18-2016
Replies: 12
Views: 519
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...
Forum: Shell Programming and Scripting Linux 10-11-2016
Replies: 14
Views: 732
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...
Forum: Shell Programming and Scripting Linux 09-20-2013
Replies: 12
Views: 1,722
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...
Forum: Shell Programming and Scripting Linux 08-09-2013
Replies: 13
Views: 82,599
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...
Forum: UNIX for Dummies Questions & Answers Linux 08-09-2013
Replies: 12
Views: 5,818
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...
Forum: Shell Programming and Scripting Linux 08-09-2013
Replies: 7
Views: 1,330
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
Forum: UNIX for Dummies Questions & Answers Linux 08-09-2013
Replies: 12
Views: 5,818
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...
Forum: Shell Programming and Scripting Linux 08-08-2013
Replies: 5
Views: 1,786
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 Linux 08-08-2013
Replies: 2
Views: 1,396
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?
Forum: Shell Programming and Scripting Linux 08-08-2013
Replies: 7
Views: 1,330
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
Forum: Solaris Linux 08-08-2013
Replies: 18
Views: 8,627
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...
Forum: UNIX for Advanced & Expert Users Linux 08-08-2013
Replies: 2
Views: 671
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 Linux 08-08-2013
Replies: 18
Views: 8,627
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...
Forum: Shell Programming and Scripting Linux 08-08-2013
Replies: 17
Views: 1,764
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...
Forum: Shell Programming and Scripting Linux 08-08-2013
Replies: 17
Views: 1,764
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...
Forum: UNIX for Dummies Questions & Answers Linux 08-08-2013
Replies: 3
Views: 672
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}')
Forum: Shell Programming and Scripting Linux 08-08-2013
Replies: 17
Views: 1,764
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...
Forum: Shell Programming and Scripting Linux 08-08-2013
Replies: 17
Views: 1,764
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 Linux 08-08-2013
Replies: 18
Views: 8,627
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 Linux 08-08-2013
Replies: 7
Views: 5,314
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...
Forum: UNIX for Dummies Questions & Answers Linux 08-08-2013
Replies: 3
Views: 688
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...
Forum: Shell Programming and Scripting Linux 08-08-2013
Replies: 11
Views: 1,264
Posted By Just Ice
shorter version ... for file in * do [...

shorter version ...
for file in *
do
[ -f $file ] && echo $file
done
Forum: Ubuntu Linux 08-08-2013
Replies: 7
Views: 5,314
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...
Forum: UNIX Desktop Questions & Answers Linux 08-08-2013
Replies: 33
Views: 27,725
Posted By Just Ice
i used to think that i should have at least mwm...

i used to think that i should have at least mwm on a unix desktop but since i do a lot of work in both unix and windows environments -- i actually prefer to work in ms windows and just use an xserver...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 09:30 PM.