I learned that on Linux the glibc’s malloc() uses mmap() for very big chunk of memories and brk() is used for small allocations.
Hi Guys,
I am relatively new to scripting at the moment and am struggling to get the following function to work. For some reason it does not recognise the arithmatic symbol when i select option1. Any help would be greatly appreciated.
Code:
menu ()
{
echo "=============="
echo "Calculator"
echo "=============="
echo "1. Divide"
echo "2.
When I run a command like ls */*/*/*/*.jpg, I get the error
-bash: /bin/ls: Argument list too long
I know why this happens: it is because there is a kernel limit on the amount of space for arguments to a command.
I am trying to create a script to run vlc to play (or queue if a playlist is already present) some videos.
so far in my ~/bin/ folder I have created a file ``myvlc'' with the following command:
#!/usr/bin/env bash
vlc --http-port 54444 %U
This works as a command if I set it as launcher command in an icon, but it doesnt work if from the command line I type: myvlc ~/Videos/Some\ Folder/video.avi
There is a program at work called processsubmit - it is kinda like a ping command plus a ps command - written in c.
we execute is manually and it pings all the processes in a region to make sure everything is running. instead of doing it manually, I cron jobbed it and make it pop out in an xterm;
I am writing a script and in the usage() function I want to specify the usage.
My script uses either option1 or option2 or both.
Is there a standard way to write it up?
I have a "command" text file that issues a data file download command on each
line. I send the command file to bash. However, a small percentage of the downloads fail.
I have tried other threads here but none seem to precisely address or fix this issue.
I have a new instal of 12.04 with Unity. Cheese is installed
When i run gstreamer-properties it seems to work ok
When I run cheese i get a black screen and all options are grayed out.
hi,
I have used the cat command to combine several files, like this:
Code:
cat file1 file2 file3 > file4
then, I used the sort command on file4.
let's say for example that file4 now looks like this:
Code:
1 a
1 A
2 b
# comment here
2 B
3 c
# more comments here
3 c
(and so on )
question:
How can I use the sed