Search Results

Search: Posts Made By: drysdalk
2,248
Posted By drysdalk
Hi, If you're wanting to print the separate...
Hi,

If you're wanting to print the separate fields of a CSV out one per line, then something like this would work:


$ cat test.csv...
3,719
Posted By drysdalk
Hello, OK, here's a quick hacked-together...
Hello,

OK, here's a quick hacked-together version of a script that more-or-less does what crond would do. As Neo has mentioned however, this is not the best idea, as you're kind of needlessly...
3,719
Posted By drysdalk
Hi, In that case, you'd really be into the...
Hi,

In that case, you'd really be into the territory of literally re-inventing crontab. For example, you could define an input file format that consisted of runtimes and their associated...
3,719
Posted By drysdalk
Hi, Using the approach from my script, you...
Hi,

Using the approach from my script, you would just tweak the runtime variable accordingly. For instance, in the provided example:


runtime=`/usr/bin/date -d '2019-08-09 14:22:00' +%s`

...
2,712
Posted By drysdalk
Hello, Yes, that's correct - this error...
Hello,

Yes, that's correct - this error means that the user myuser is not allowed to run the su command via sudo. That's not unusual, and in fact is generally good practice. If you let regular...
2,712
Posted By drysdalk
Hi, As Neo has said, the most likely...
Hi,

As Neo has said, the most likely explanation here is that myuser has a valid shell set in /etc/passwd, whereas webuser does not.

Witness the following example:


# finger -l unixforum...
5,307
Posted By drysdalk
Hi, The sed command can take care of this...
Hi,

The sed command can take care of this for you:


$ cat test.txt
,001E:001F,,,02EE,0FED:0FEF,
$ sed -i 's/^,//g;s/,$//g' test.txt
$ cat test.txt
001E:001F,,,02EE,0FED:0FEF


The...
22,948
Posted By drysdalk
Hi, In theory, this should be fairly...
Hi,

In theory, this should be fairly straightforward. If you want to delete all files created from 2017 and beyond (i.e. also files from 2016, 2015, etc - anything older than 2017), then you...
5,192
Posted By drysdalk
Hi, There's a few ways to approach this, but...
Hi,

There's a few ways to approach this, but using the find command as you're starting to do will certainly do the trick. However, as things stand, your find command isn't actually going to do...
3,649
Posted By drysdalk
Hi, Yes, the issue here is most likely to be...
Hi,

Yes, the issue here is most likely to be zenity, as you say. zenity is a utility for displaying dialog boxes in an X Windows graphical environment. If you're running this server headless...
1,576
Posted By drysdalk
Hi, OK, two things to try here: 1. Use...
Hi,

OK, two things to try here:

1. Use the full path in your command - so /usr/bin/stress (assuming that's where it's installed on your system, naturally) rather than just stress
2. Remove the...
1,576
Posted By drysdalk
Hello, I'm not 100% clear on what you might...
Hello,

I'm not 100% clear on what you might mean here, but I see two possibilities. A script will normally exit either when the last command it contains is executed, or when an exit statement is...
2,171
Posted By drysdalk
Hi, If you are really, truly needing to...
Hi,

If you are really, truly needing to provide some way for your end users in a production environment to add or subtract numbers at the command line, there's no sense in re-inventing the wheel...
Forum: What is on Your Mind? 01-31-2018
3,313
Posted By drysdalk
Hi, Functionally-speaking, you're absolutely...
Hi,

Functionally-speaking, you're absolutely correct of course - you couldn't with a straight face call an iPad a UNIX workstation. But kernel-wise at least I believe iOS is UNIX underneath, as...
Forum: What is on Your Mind? 01-31-2018
3,313
Posted By drysdalk
Hi, Whilst there's no question that Linux is...
Hi,

Whilst there's no question that Linux is the dominant OS in the UNIX(ish) family, I don't personally think that the BSDs are going to go away any time soon.

For example, looking at...
67,793
Posted By drysdalk
Hi, That's a very open-ended question...
Hi,

That's a very open-ended question without a clear answer. As always, it depends almost entirely on what exactly you're going to be doing, on your workload, on the OS your guests will be...
3
2,587
Posted By drysdalk
Hi, If you are administering this UNIX sytem...
Hi,

If you are administering this UNIX sytem remotely, and you issued an init 0 command, then (unless something went wrong to stop the process) the system will be shut down. It won't be rebooting...
2,875
Posted By drysdalk
Hi, Taking these in turn: 1. grep -l...
Hi,

Taking these in turn:

1. grep -l basically just prints the names of files that match the pattern you're searching for, rather than printing the matching lines in the files themselves. For...
3,219
Posted By drysdalk
Hi, Port 514 is the port for the syslog...
Hi,

Port 514 is the port for the syslog service, as you seem to have already determined. However, in those instances where a local logging service is configured to listen for incoming connections...
1,915
Posted By drysdalk
Hi, There's no easy way to do what you want...
Hi,

There's no easy way to do what you want to do with find, or at least not based on a simple -type test. As you've previously been advised, an empty file is defined as a file containing 0 lines...
4,869
Posted By drysdalk
Hi, Basically, yes. However, there is...
Hi,

Basically, yes.

However, there is one more thing that may be worth checking. If your Solaris system has accounting enabled, then you might be able to run lastcomm to see the commands...
3,248
Posted By drysdalk
Hello, I would imagine that under normal...
Hello,

I would imagine that under normal circumstances the kernel would choose to allocate memory from the free pool first, before flushing out buffers, cache or anything else. It all depends...
3,248
Posted By drysdalk
Hi, Taking your questions in turn: 1....
Hi,

Taking your questions in turn:

1. Buffers and cache are essentially types of memory that, whilst they are in use, could be freed up if the system required memory for some other purpose. ...
Forum: Solaris 09-28-2017
2,300
Posted By drysdalk
Hi, That's good, that you at least have...
Hi,

That's good, that you at least have something that can take over while you do a re-build. In terms of repairing this - I'm not myself aware of a way of doing that, sadly. The problem is that...
1,890
Posted By drysdalk
Hi, I just tried this in vim, and the...
Hi,

I just tried this in vim, and the following command worked for me:


1,$ s/\.\*/[0-9][0-9]/g


This turned the following string:


blah blah .*:.*:.* blah blah


into this:

...
Showing results 1 to 25 of 85

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