Search Results

Search: Posts Made By: lsatenstein
3,438
Posted By lsatenstein
Its 5pm in Montreal. I will do my due diligence...
Its 5pm in Montreal. I will do my due diligence tomorrow AM.
It looks interesting

My original problem was a script that had multiple functions such as

function 1
function 2
function 4....
3,438
Posted By lsatenstein
UNIX $USER and $LOGNAME environment variables
I have some comments about a previously closed topic whose name is the same as above

Omitted from the discussion was the situation with a "sudo command or sudo within a script".

There is an...
3,096
Posted By lsatenstein
Put one script under the other using vi's r...
Put one script under the other using vi's r second_script
or cat script1 script2 >combined.

edit combined to eliminate the second
#!/bin/bash
# import variables

I did not see anywhere...
2,356
Posted By lsatenstein
Simpler crontab entry to execute pgm on last day of the month
The following bash command line works for the last day of the month. Test by replacing the 1 with tomorrows day of month number
[ 1 == `date +%d -d '1 day'` ] && echo "Day before tomorrow"Can it be...
Forum: Programming 06-21-2014
2,177
Posted By lsatenstein
When wanting to provide an address to a called pointer
Your code crashes because you are passing the address that "name" is pointing to
which is null.

So what you must do is pass the address of name as

int ConvertIDToName(void *id, void *&name,...
9,658
Posted By lsatenstein
To All I tried each of the examples you...
To All

I tried each of the examples you presented and I want to thank you for the help.

You asked for an uploaded file, and one is attached.

To upload, I had to change a filename from x.raw...
9,658
Posted By lsatenstein
Sort anomalie
Hi Don

Thank you for your posting. I too, discovered the -f option this evening and then I read your response when I came to post my finding.

The data you see above had many many iterations to...
9,658
Posted By lsatenstein
I guess I was bleary eyed last night when I...
I guess I was bleary eyed last night when I indicated that everything was ok, but ....
Sorting for columns 2 through 4 works fine.

How do I make the sort work for column 1?
Do I need to add a...
9,658
Posted By lsatenstein
gnu sort appears to behave differently
I ran sort as you indicated and it worked.

I have tried to understand why you used -k4

I was trying to sort by the first column. And for all that I tried,
the Host=Fedora .... was...
9,658
Posted By lsatenstein
Thanks for the reminder. I actually had "...
Thanks for the reminder. I actually had " \bHost = xxx, topdir=ddd etc"

but without the -t the sort interprets the line, so that it saves it as Host=xxx ....

In 20 minutes, I will do the...
9,658
Posted By lsatenstein
The first line of the file is a header, containing..
I have a file consisting of fixed columns
title showing from where the file originates
lines containing
progname|date|sha1 checksum|path

I want to sort by progname but to keep the top line....
9,658
Posted By lsatenstein
Need to sort text keeping first line always first
I have a file is created from standard output.

I have put a leading space to force the first line to collate low vis a vis the rest of the lines.

If I pass the entire file to the Linux sort, it...
Forum: Linux 09-26-2011
2,969
Posted By lsatenstein
Did you perhaps immediately after the logon was...
Did you perhaps immediately after the logon was presented but before the password was entered, choose other than gnome. Say Classic Gnome, or Compiz Gnome? That is a good starting point
Select...
Showing results 1 to 13 of 13

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