Search Results

Search: Posts Made By: Corona688
7,820
Posted By Corona688
It's also important to realize that parallel can...
It's also important to realize that parallel can be a performance loss in some situations, especially if any of these queries are disk-intensive.
16,332
Posted By Corona688
You have followed none of my suggestions. I...
You have followed none of my suggestions. I suggest you follow them and tell me what happens then.
Forum: OS X (Apple) 10-25-2019
15,202
Posted By Corona688
zsh is a really odd choice. It's a hodgepodge of...
zsh is a really odd choice. It's a hodgepodge of features from bourne and csh, with its own special extensions. It's not comparable and not compatible.

I don't know why they needed a shell to be...
4,612
Posted By Corona688
That's all it means. The culture is not UNIX...
That's all it means. The culture is not UNIX culture, it's BSD and GNU. The entire "classic UNIX approach of free and open" was anti-UNIX backlash! A little history is needed to understand why.
...
6,023
Posted By Corona688
You made your executable correctly. It should...
You made your executable correctly. It should have worked. It did work -- except, not in your window manager.

There could have been -- and may still be -- issues with your window manager,...
6,762
Posted By Corona688
These files are used on login. sudo bash is not...
These files are used on login. sudo bash is not a login.

Environment variables are external memory designed to be shared. Functions are part of a shell's internals and are not. For sudo bash to...
4,612
Posted By Corona688
In the literal, legal sense, UNIX means you had...
In the literal, legal sense, UNIX means you had your operating system tested and certified as UNIX-compliant. Apple did this, and Linux hasn't (and perhaps can't, except for a tiny subset of...
14,410
Posted By Corona688
Well that's not going to work. You're just...
Well that's not going to work. You're just printing the statements to the screen and not giving anything to sshpass at all.

Does your script change the variable IFS? Strings are supposed to...
14,410
Posted By Corona688
I won't know the issue until it works. ...
I won't know the issue until it works. Nonprinting characters are nonprinting, invisible to copy-paste. If there were nonprinting characters in your array you might not see them. Did you try my...
5,474
Posted By Corona688
What's your operating system? That's important...
What's your operating system? That's important for how ps behaves.

It can't match ID and name on numbers because that's ambiguous. There could be several "correct" entries, which isn't supposed...
14,410
Posted By Corona688
No reason * shouldn't expand, perhaps you ended...
No reason * shouldn't expand, perhaps you ended up with nonprinting characters like carriage returns in your array or some such. If the commands work when pasted, that's what I'd bet.

By the way,...
6,348
Posted By Corona688
Do not post classroom or homework problems in the...
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum (https://www.unix.com/homework-coursework-questions/) under special...
3,021
Posted By Corona688
We get asked how to do date math in AIX so often...
We get asked how to do date math in AIX so often I made a perl script for it (https://www.unix.com/unix-for-beginners-questions-and-answers/239167-general-purpose-date-script.html). It's a...
6,245
Posted By Corona688
A level of quoting disappears (because your local...
A level of quoting disappears (because your local shell interprets it first) when you put code over ssh / sshpass. You need to quote some of your quoting.

sshpass -p 'abc' ssh -o...
16,252
Posted By Corona688
If your values will never contain spaces, you can...
If your values will never contain spaces, you can "pass" arrays as strings "val1 val2 val3" and split them back inside the function, like this:

#!/bin/ksh

set -A filelist val1 val2 val3
set -A...
14,410
Posted By Corona688
The echo you removed was necessary. Without it,...
The echo you removed was necessary. Without it, you are attempting to run a file named "( cd /path/to/${ID}*/*/folder && exec sshpass -f file.txt scp...
3,677
Posted By Corona688
tyler@gentoo ~ $ echo $SHELL /bin/bash ...
tyler@gentoo ~ $ echo $SHELL
/bin/bash
tyler@gentoo ~ $ echo $status

tyler@gentoo ~ $ echo $?
0
tyler@gentoo ~ $
14,410
Posted By Corona688
Show your code. Always. Show your code.
Show your code.

Always. Show your code.
5,007
Posted By Corona688
Run like: ksh script.sh...
Run like:
ksh script.sh /path/to/filename12345.txt

Inside:
#!/bin/ksh

# $1 = filename12345.txt
set -- $(echo "$1" | tr -cd '0-9')
# $1 is now 12345

# rest of program
5,007
Posted By Corona688
ksh scriptname $(cat filename)
ksh scriptname $(cat filename)
14,968
Posted By Corona688
To repeat: It's not a setting, it's hardcoded. ...
To repeat: It's not a setting, it's hardcoded. Changing it won't change programs. You'd just make it lie.

It might be possible to build a custom ksh with a higher setting but that sounds far...
14,968
Posted By Corona688
I've verified that it's not cheating in my case...
I've verified that it's not cheating in my case by having the script print an extra character. The count would be out several more if ksh were being run repeatedly.
14,968
Posted By Corona688
It's a hardcoded limit, not something trivially...
It's a hardcoded limit, not something trivially changed. Even if you coerce getconf into changing, it won't be reflected in programs. But I suspect you're using a crusty old pdksh/ksh88, newer ksh...
6,356
Posted By Corona688
Sorry, my morning coffee hadn't kicked in. ...
Sorry, my morning coffee hadn't kicked in.

Your chroot commands get things ready for a chroot, but don't actually run chroot, so nothing ends up happening inside the chroot.

If you call chroot...
14,410
Posted By Corona688
This is a rather roundabout way of sending files!...
This is a rather roundabout way of sending files! sshpass executing sshpass executing scp. Isn't there a better way?

Anyway, this doesn't do what you think. Each ID only gets used once. The...
Showing results 1 to 25 of 500

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