Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: wisecracker
Forum: What is on Your Mind? Linux 5 Days Ago
Replies: 4
Views: 280
Posted By wisecracker
Thanks but... Certainly not, I rather like...

Thanks but...

Certainly not, I rather like it... ;o)

EDIT:

I have tried to thank your post twice but it looks as though it is not working.
Clicking on Thanks just removes the button here......
Forum: What is on Your Mind? Linux 5 Days Ago
Replies: 4
Views: 280
Posted By wisecracker
The green pop-ups...

Admins...

I just lerve the pop-ups that appear whilst replying to someones post.

It reminds me of "Paperclip" from my MS Windows days... ;oDD

Love it, as it makes me smile, telling me I am...
Forum: UNIX for Beginners Questions & Answers Linux 5 Days Ago
Replies: 6
Views: 340
Posted By wisecracker
Hi andysensible... An additional note to...

Hi andysensible...

An additional note to Scrutinzer's post...

This is the only reply, in the few that have been posted, that is fully POSIX compliant and will work in 'sh' and 'dash' too, thus...
Forum: UNIX for Beginners Questions & Answers Linux 1 Week Ago
Replies: 5
Views: 181
Posted By wisecracker
Hi derndingle... It might be worth using this...

Hi derndingle...
It might be worth using this test site:

ShellCheck – shell script analysis tool (https://www.shellcheck.net/)

It can cater for sh, dash, bash, ksh and perhaps others now.
...
Forum: OS X (Apple) Linux 1 Week Ago
Replies: 6
Views: 314
Posted By wisecracker
Well I have tried using both sudo -s and su...

Well I have tried using both sudo -s and su ladmin in non-admin mode and neither give me access...
OSX 10.13.0, not updated this machine yet, the iMac is done.
Last login: Fri Dec 1 17:42:33...
Forum: OS X (Apple) Linux 2 Weeks Ago
Replies: 6
Views: 314
Posted By wisecracker
I run all my machines as a non-admin user so...

I run all my machines as a non-admin user so therefore I should be relatively safe. I re-boot to go into admin user mode instead of logging out from non-admin and logging back in to admin mode.
...
Forum: Shell Programming and Scripting Linux 4 Weeks Ago
Replies: 3
Views: 397
Posted By wisecracker
Is this question referring to this thread? ...

Is this question referring to this thread?
https://www.unix.com/programming/275267-help-needed-spawn-shell-python-continue-execution.html#post303007145
If so then...
'xterm' is NOT a shell it is a...
Forum: Programming Linux 4 Weeks Ago
Replies: 3
Views: 265
Posted By wisecracker
Well that is a useful reply - NOT! If it is...

Well that is a useful reply - NOT!

If it is imperative to use 'xterm' then why not put your single line as a tiny script and call it something like:-
1) The script, say myscript.sh......
Forum: OS X (Apple) Linux 11-10-2017
Replies: 0
Views: 444
Posted By wisecracker
FFT for the AMIGA through ksh88 shell.

I don't know if anyone is interested but I have been meddling with FFT for the AMIGA.
(Sadly we AMIGAns don't have these luxuries through any scripting language.
Below is a Python snippet that uses...
Forum: OS X (Apple) Linux 09-12-2017
Replies: 4
Views: 249
Posted By wisecracker
Hi neutronscott... Thanks, excellent reply. ...

Hi neutronscott...

Thanks, excellent reply.

I also tested the external command and it does not work in 'bash' either.

It never occurred to me that the external command would not work on a...
Forum: OS X (Apple) Linux 09-11-2017
Replies: 4
Views: 249
Posted By wisecracker
'time' does NOT work on a function in 'dash'.

Hi guys and gals...

I am writing a piece of code that is dash compliant and came across this error.
I have put it in the OSX section as that is what I am using.
I have no idea what the 'dash'...
Forum: OS X (Apple) Linux 09-06-2017
Replies: 3
Views: 524
Posted By wisecracker
Hi JM... (Thanks for the reply.) Apologies...

Hi JM...
(Thanks for the reply.)
Apologies for any typos, and hope it is lucid enough.

Apologies for the delay, I have not been around for a while. My triangle wave is more or less hypothetical...
Forum: OS X (Apple) Linux 08-28-2017
Replies: 3
Views: 524
Posted By wisecracker
Simple symmetrical wave RMS DEMO using awk.

Hi everyone.
This is DEMO code for getting the RMS value of a symmetrical sampled waveform. It works a treat except see below.
I have used awk as the prime mover as CygWin does not havd 'bc' or...
Forum: OS X (Apple) Linux 08-27-2017
Replies: 7
Views: 4,303
Posted By wisecracker
Well guys, testing this project gets harder by...

Well guys, testing this project gets harder by the distance in upload periods.
(You could say AudioScope fatigue is setting in.)

Well on testing on numerous Linux flavours there are many that use...
Forum: What is on Your Mind? Linux 08-17-2017
Replies: 6
Views: 555
Posted By wisecracker
You too can learn how to code in a day! ;oO

I am not passing a comment, just waiting to read yours... ;oD

Decoded: learn to write computer code in a day - Telegraph...
Forum: UNIX for Beginners Questions & Answers Linux 08-16-2017
Replies: 7
Views: 493
Posted By wisecracker
Are you pointing to the correct directory? Does...

Are you pointing to the correct directory?
Does that directory exist?
Are 'file_old' and 'file_new' in the current directory?
Do both in fact exist?
Forum: Post Here to Contact Site Administrators and Moderators Linux 08-02-2017
Replies: 21
Views: 2,715
Posted By wisecracker
I view mostly as an outsider in the UK and not...

I view mostly as an outsider in the UK and not log in but in that mode I have not noticed much difference in performance nor any strange effects.

Some adverts can cause a slowdown but as I have...
Forum: Shell Programming and Scripting Linux 07-24-2017
Replies: 7
Views: 507
Posted By wisecracker
Assuming your terminal can do it, you could use...

Assuming your terminal can do it, you could use a terminal escape code something like this:-
(OSX 10.12.5, default bash terminal.)
Last login: Mon Jul 24 13:59:56 on ttys000
AMIGA:barrywalker~>...
Forum: Shell Programming and Scripting Linux 07-19-2017
Replies: 2
Views: 437
Posted By wisecracker
To save 5 keystrokes typing QUIT, how about this...

To save 5 keystrokes typing QUIT, how about this dual key single keystroke:-
#!/bin/ksh
echo "Press Ctrl-D to QUIT and continue..."
cat > /dev/null # /full/path/to/filename
echo "You are here..."...
Forum: UNIX for Beginners Questions & Answers Linux 07-13-2017
Replies: 8
Views: 817
Posted By wisecracker
I don't understand what you mean by a binary file...

I don't understand what you mean by a binary file here as ALL files are binary, so......
......Ignoring the <FF><FE> at the start for the time being is the result below what you are looking for,...
Forum: OS X (Apple) Linux 06-22-2017
Replies: 7
Views: 4,303
Posted By wisecracker
Well I have discovered that I was using a method...

Well I have discovered that I was using a method to QUIT the program that was not allowed.
Thanks to Corona688 for putting me straight and using the correct method to quit now.
This was apparantly...
Forum: Programming Linux 06-08-2017
Replies: 8
Views: 1,017
Posted By wisecracker
Hi RudiC... So one is allowed to execute...

Hi RudiC...

So one is allowed to execute code AFTER exit has been called even if it is an ASCII string inside a variable, from awk AND Python and I thought Python was strict, what about Perl and...
Forum: Programming Linux 06-08-2017
Replies: 8
Views: 1,017
Posted By wisecracker
@ RudiC... How about this then? #!/bin/bash ...

@ RudiC...
How about this then?
#!/bin/bash
echo "Inside bash shell here."
python3.5 "$HOME/Desktop/Code/Python/exit_malicious.py"
echo "Back inside bash shell with exit code $?..."
import os...
Forum: Programming Linux 06-08-2017
Replies: 8
Views: 1,017
Posted By wisecracker
Oh dear this is even worse! It even does it in...

Oh dear this is even worse!
It even does it in a called script from a bash script...
#!/bin/bash
echo "Hello World!"
python3.5 "$HOME/Desktop/Code/Python/PythonRC.py"
echo "Return code is $?..."...
Forum: Shell Programming and Scripting Linux 06-07-2017
Replies: 8
Views: 621
Posted By wisecracker
I have made the same mistake very recently. ...

I have made the same mistake very recently.

You can break out of your loop inside your function but not in the main loop. You need to use 'return <some_value>' and detect the function's return...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 12:07 PM.