Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.15 seconds.
Search: Posts Made By: Corona688
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 5
Views: 184
Posted By Corona688
Thanks, that workaround works great. Just one of...

Thanks, that workaround works great. Just one of those weird syntax corners it seems.
Forum: Shell Programming and Scripting Linux 1 Day Ago
Replies: 5
Views: 184
Posted By Corona688
awk file redirection issue

So I'm writing a script which tries to parse human-readable addresses. Part of it is this:

print $2, implode(A,1,AN," "), CITY, PROV, POST, COUNTRY, CITYCOUNT>2;

CITYCOUNT is a variable...
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 9
Views: 235
Posted By Corona688
HTML sort of has a shebang and sort of doesn't. ...

HTML sort of has a shebang and sort of doesn't. It has something web browsers understand, but doesn't have a UNIX shebang, so ./file.html would just default to 'shell script' and quit with loads of...
Forum: Shell Programming and Scripting Linux 2 Days Ago
Replies: 13
Views: 600
Posted By Corona688
The problem with your guess is that UNIX doesn't...

The problem with your guess is that UNIX doesn't have hidden files.

When you use readdir(), it does not hide dot files. Hiding dot files is not a UNIX filesystem feature, UNIX kernel feature, or...
Forum: UNIX for Beginners Questions & Answers Linux 5 Days Ago
Replies: 5
Views: 148
Posted By Corona688
Without seeing your code, I have no idea why its...

Without seeing your code, I have no idea why its doing that.

Please show your code.
Forum: UNIX for Beginners Questions & Answers Linux 5 Days Ago
Replies: 5
Views: 148
Posted By Corona688
You don't want 700 on your keys, you want 700 on...

You don't want 700 on your keys, you want 700 on the directory. The keys should have 600.
Forum: Shell Programming and Scripting Linux 6 Days Ago
Replies: 13
Views: 600
Posted By Corona688
chown does not ignore hidden files. Only ls does...

chown does not ignore hidden files. Only ls does that, as a user convenience.

Those files must have been preserved for some other reason, probably different ownership than you expected, and that...
Forum: Shell Programming and Scripting Linux 6 Days Ago
Replies: 8
Views: 240
Posted By Corona688
sh -c does not take arguments from standard...

sh -c does not take arguments from standard input, it does not take arguments at all. It takes the script from an argument.
Forum: UNIX for Beginners Questions & Answers Linux 6 Days Ago
Replies: 7
Views: 264
Posted By Corona688
The "sleep 120" does nothing since sftp has no...

The "sleep 120" does nothing since sftp has no such command, by the way.

What do you mean 'tracking'?

You can examine the contents of zip files with unzip -l

You should not be using expect...
Forum: UNIX for Beginners Questions & Answers Linux 6 Days Ago
Replies: 5
Views: 177
Posted By Corona688
Different PATH value causes it to find a...

Different PATH value causes it to find a different sh, perhaps?
Forum: Shell Programming and Scripting Linux 1 Week Ago
Replies: 23
Views: 673
Posted By Corona688
Step 1 is a problem since you can't have more...

Step 1 is a problem since you can't have more than one file with the same name.
Forum: UNIX for Beginners Questions & Answers Linux 1 Week Ago
Replies: 6
Views: 251
Posted By Corona688
More than 'a lot of data', I suspect there is 'a...

More than 'a lot of data', I suspect there is 'a lot of files'. Piling thousands upon thousands of files in one directory is particularly slow.
Forum: UNIX for Beginners Questions & Answers Linux 1 Week Ago
Replies: 1
Views: 140
Posted By Corona688
What does "upload through konsole" mean? Are you...

What does "upload through konsole" mean? Are you having trouble compiling a cpp file, or trouble creating one in the first place?

Assuming your program is written portably, and your computer has...
Forum: Shell Programming and Scripting Linux 1 Week Ago
Replies: 8
Views: 240
Posted By Corona688
Advanced Bash-Scripting Guide...

Advanced Bash-Scripting Guide (http://tldp.org/LDP/abs/html/)

They are not the same $0 $1 $2 variables as your own shell. They are in single quotes:'echo "Dumping file: $2" >> "$1"; w3m "$2" >>...
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 5
Views: 238
Posted By Corona688
Are you trying to control a windows system...

Are you trying to control a windows system remotely? Look into Windows terminal services.
Forum: Programming Linux 2 Weeks Ago
Replies: 3
Views: 505
Posted By Corona688
It's the exact same problem as fgets, too.

It's the exact same problem as fgets, too.
Forum: Programming Linux 2 Weeks Ago
Replies: 3
Views: 505
Posted By Corona688
The >> operator does not care at all about lines....

The >> operator does not care at all about lines. If you want lines, you'll have to separate it some other way, which is exactly what the stackoverflow code does.

It reads entire lines with...
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 3
Views: 270
Posted By Corona688
What does "giving all services not exits"...

What does "giving all services not exits" mean?
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 6
Views: 235
Posted By Corona688
In that case, why not just tar -cf - . ? ...

In that case, why not just tar -cf - . ? Captures the entire current directory without having to pass in a literal 100,000 files.

Or perhaps even tar -zcf out.gz .
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 13
Views: 472
Posted By Corona688
The internet does not work that way. Sending...

The internet does not work that way. Sending someone else a link to "c:\users\fejoz\desktop\ttt.jpg" does not make them see your computer. You can't dump it in 'image:' contents either, not on a...
Forum: UNIX for Beginners Questions & Answers Linux 2 Weeks Ago
Replies: 8
Views: 256
Posted By Corona688
The method you solved the problem is as good a...

The method you solved the problem is as good a way as any. You may wish to use mktemp for a safer temporary file name.

VAR1=`mktemp`
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 13
Views: 472
Posted By Corona688
It works perfectly fine with both. Try it.

It works perfectly fine with both. Try it.
Forum: Shell Programming and Scripting Linux 3 Weeks Ago
Replies: 13
Views: 472
Posted By Corona688
How about: xargs mkdir < inputfile

How about:
xargs mkdir < inputfile
Forum: Programming Linux 3 Weeks Ago
Replies: 2
Views: 199
Posted By Corona688
Without seeing the code for either of them, I...

Without seeing the code for either of them, I can't really do anything but guess.

If you want my guess, make sure PATH has a sane value before you call the BASH script.
Forum: Solaris Linux 3 Weeks Ago
Replies: 1
Views: 251
Posted By Corona688
Bumping up posts or double posting is not...

Bumping up posts or double posting is not permitted in these forums.

Please read the rules (https://www.unix.com/misc.php?do=cfrules), which you agreed to when you registered, if you have not...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 02:48 PM.