Search Results

Search: Posts Made By: dakelly
3,804
Posted By gull04
Hi, Having a quick look, if you use the -f...
Hi,

Having a quick look, if you use the -f switch. Then I think that /usr/bin/expect -f ${expect_commands_file} is what is expected.

If you create an expect script starting #!/usr/bin/expect...
3,804
Posted By gull04
Hi, I do this using two quickly hacked...
Hi,

I do this using two quickly hacked together scripts as follows - please bear in mind that these scripts are running on Solaris 11 and things are done this way to avoid a problem. But the...
16,932
Posted By jgt
i couldn't find it on my phone yesterday, but...
i couldn't find it on my phone yesterday, but here is the thread I was referring to: https://www.unix.com/shell-programming-and-scripting/274308-mailx-attachment-html-content.html#neo-top
16,932
Posted By jgt
you are missing a final boundary line. you...
you are missing a final boundary line.
you should be able to find a workable solution if you search 'sendmail' and restrict the output to my posts.
Forum: UNIX and Linux Applications 03-09-2018
5,495
Posted By gull04
Hi, The VM hosting WP2 would be the prime...
Hi,

The VM hosting WP2 would be the prime suspect then, although without being able to have a look at timings and routes that will be difficult to prove.

I think that you might have to start at...
Forum: UNIX and Linux Applications 03-09-2018
5,495
Posted By gull04
Hi, I think I would start with some basics...
Hi,

I think I would start with some basics here assuming that the IP's are different, you could try;


Ping the IP Addresses from your work station, check that they are around the same.
Ping...
Forum: UNIX and Linux Applications 03-09-2018
5,495
Posted By hicksd8
On a client on which WP2 loads "super-slow" what...
On a client on which WP2 loads "super-slow" what happens if you put WP2's IP address in the URL instead of its hostname? Let's prove that the slowness is not a problem in resolving the name.
...
8,263
Posted By jim mcnamara
How to debug problems like this steps: cd...
How to debug problems like this
steps:
cd /path/to/files
# are we in the right directory?
pwd
# filename to find is ABC_DEFGH*
ls -l ABC_DEFGH* |tail -1
# if all of this works out correctly...
Forum: Solaris 09-14-2017
2,749
Posted By MadeInGermany
If you do not use $LIST elsewhere you can do ...
If you do not use $LIST elsewhere you can do

. . .
OUTPUT=/tmp/output.txt
. . .

for FILE in POM*
do
[ -f "$FILE" ] || continue
awk -F"," '{ if (NF > 14) { print FILENAME" line:> "...
Forum: Solaris 09-07-2017
2,749
Posted By Corona688
If the dir could contain thousands of files, DK*...
If the dir could contain thousands of files, DK* might break someday. You can also get rid of that uniq.

ls | grep "^DK" | xargs awk -F, '(NF != 14) && !(FILENAME in A) { print FILENAME ;...
Forum: Solaris 09-07-2017
2,749
Posted By RudiC
Unfortunately, my awk doesn't provide the...
Unfortunately, my awk doesn't provide the nextfile command, so we need the additional uniq. Try
awk 'NF != 14 {print FILENAME}' FS=, DK* | uniq | /usr/bin/mailx -s"Graftons Files that might cause...
Forum: Solaris 09-07-2017
2,749
Posted By jlliagre
Two comments in case you are still runnig Solaris...
Two comments in case you are still runnig Solaris 10:

- never use #!/bin/sh under Solaris 10 and older, use ksh (or bash).

- never use awk under Solaris 10 and older, use nawk.
Forum: Solaris 09-07-2017
2,749
Posted By apmcd47
I don't really know awk, but you will probably...
I don't really know awk, but you will probably want something like

awk -F, 'BEGIN {nrecs=0;} {if (NF > nrecs) { nrecs = NF; } } END {print nrecs; }' $FILE

That might not be syntactically...
Forum: Solaris 09-07-2017
2,749
Posted By apmcd47
First question: Do all the files contain multiple...
First question: Do all the files contain multiple lines, or just one line per file? If the former, must all the lines comply with the number of commas?

Assuming the latter, this might be a little...
1,090
Posted By apmcd47
You are doing this on Solaris? Are you using...
You are doing this on Solaris? Are you using /bin/sh, /bin/ksh or /bin/bash?
I assume $ZONE contains, eg, /newpool/server1 and you want it to appear as server1.
In /bin/sh, as it looks like a...
Forum: Solaris 05-27-2017
2,401
Posted By jim mcnamara
First off, the root user if it is enabled as a...
First off, the root user if it is enabled as a user and not a role can see the directories of all the non-global zone, from the global zone. From the global zone the directory zones can have many...
Forum: Solaris 05-27-2017
2,401
Posted By hicksd8
I assume that when you say you tried the '-s'...
I assume that when you say you tried the '-s' switch you actually mean '-S'.
Forum: Solaris 05-27-2017
2,401
Posted By MadeInGermany
zlogin can read from stdin, that is the loop's...
zlogin can read from stdin, that is the loop's stdin, in competition with the read comand.
Unless redirected like this
</dev/null zlogin "$ZONE" crontab -l | grep "/shutdown" >> $MSG
Forum: Solaris 05-26-2017
2,401
Posted By achenle
grep /shutdown...
grep /shutdown /zones/*/root/var/spool/cron/crontabs/rootYou can access the files in a zone's filesystems directly from the global zone in "/zones/[ZONENAME]/root"
Forum: Solaris 05-26-2017
2,401
Posted By hicksd8
When you say that it doesn't work, do you get an...
When you say that it doesn't work, do you get an error message?

Since you are using 'root' credentials (and not specifying a userid) have you tried using the '-S' safe login switch and, if so, did...
Showing results 1 to 20 of 20

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