-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'd like to know if there's a way to get the number of seconds since the UNIX epoch in any POSIX compliant shell, without resorting to non-POSIX languages like perl, or using non-POSIX extensions like GNU awk's strftime function.
Here are some solutions I've already ruled out...
date +%s //…
>>> More
-
as seen on Super User
- Search for 'Super User'
Under Ubuntu 8.10, bash shell, the LANG and LC_ALL variables are not set:
user@machine1:~$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
Where…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
posix does not appear when I run php -m cmd, however, I see it from the phpinfo() –enable-posix=shared on Linux with Plesk 9.
Basically, I can't use posix_*() functions as described at
http://www.php.net/manual/en/ref.posix.php
this shows doesn't exists:
if (function_exists(‘posix_getuid’)) {
echo…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In a linux application I'm using pipes to pass information between threads.
The idea behind using pipes is that I can wait for multiple pipes at once using poll(2). That works well in practice, and my threads are sleeping most of the time and only wake up if there is something to do for them.
On…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
Do you know about any good library wrapping posix and linux functions and structures ( eg. sockets or file descriptors ) into C++ classes? For example I'm thinking about a base FileDescriptor class and some inheriting classes ( unix sockets etc ) with methods like write, read or even some syscalls…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I try to update Ubuntu Natty Narwhal, but I got this error:
dpkg: .../xserver-xorg-core_2%3a1.9.99.901+git20110131.be3be758-0ubuntu6_i386.deb miatt xserver-xorg-core-t is tartalmazza:
xserver-xorg-core breaks xserver-xorg-video-8
nvidia-current provides xserver-xorg-video-8 and is present and…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
i'm kinda new to linux. last night i tried upgrading from 13.04 to 13.10 but i got the "could not calculate" error. i read this question and found this error in the main log: Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'
and here's a list of my broken packages…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I got the following problem:
My PC shutdown while upgrading from 12.04 to 12.10.
Everything seems to work but I can't install the missing updates. It always tells me to run apt-get install -f, but when I do so it just says:
(It's in German, hope it doesn't matter)
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I did change my packages in synaptic from manually installed to Automatically (they were not manually installed but automatically). Now they are marked for Autoremove.
I tested it with sudo apt-get autoremove and the result is shown below (a reduced version because its almost all packages). I remember…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
Since a couple of days now, my unity desktop background smears everything, just like what old Windows versions were famous for:
Of course, I tried rebooting a couple of times. Also, I switched graphics driver and I tried to change wallpaper and theme, but none of them solved the problem.
What…
>>> More