01-08-2011
"Cannot allocate memory" error when run from script
hi
in my application there is a line with
open(/dev/mydevice,0);
it work good when it run manually,
but when try to run it within script
///////////////////////////////////////////
#!/bin/sh
./device_test 0 0 0 1 1 1 0 0 1
/////////////////////////////////////////
I receive 'Failed to open mydevice' "Cannot allocate memory" error
how can it be fixed
thanks in advance
linux2.6.32.2 on ARM embedded board
---------- Post updated 01-08-11 at 02:18 AM ---------- Previous update was 01-07-11 at 11:50 PM ----------
also, this problem exist when I try to run the proposed application from within Qt application using QProcess or directly use open(/dev/mydevice,0); function
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All.
I'm get the following messages posted to the /var/adm/syslog file ever second and not sure on how to stop the process.
May 14 15:50:52 a3360 bootpgw: version 2.3.5
May 14 15:50:52 a3360 inetd: /etc/bootpgw exit 0x1
As said about this gets logged every second only thing that... (4 Replies)
Discussion started by: cfaiman
4 Replies
2. Shell Programming and Scripting
How to make a script run for a maximum of "x" number of hours only (7 Replies)
Discussion started by: ScriptDummy
7 Replies
3. Shell Programming and Scripting
heya,
can someone help me with following problem.
i am not sure how far you know the catalina.sh script from tomcat. when i start my tomcat with "catalina.sh run" then the startup-process-output will be printed out on the console, but the tomcat process is started in current shell/session, so... (1 Reply)
Discussion started by: Filly
1 Replies
4. Shell Programming and Scripting
Hi
I have a script that execute every X minute for checking new files in a folder and converting to pdf.
Is there any way to start this script automatically on linux startup?. I use sleep function in script with infinite loop.
while
do
killall -u `whoami` -q soffice
soffice... (0 Replies)
Discussion started by: zawmn83
0 Replies
5. AIX
Hi,
This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies
6. Shell Programming and Scripting
Hello Everyone,
I am logged in as me. I created a script in the directory "/install/new" called "script1.sh" which basically runs another script "runapp.sh" . The "runapp.sh" is a vendor provided application strart up script that came with the installation. This is also in the same directory as... (10 Replies)
Discussion started by: bhaire
10 Replies
7. Shell Programming and Scripting
I am running a program written in perl script and it is stopped with "Out of memory!" error. This is very strange because at the time then the program is aborted, it only used 4GB RAM and there are still 30GB free physical memory left in the system. I check the perl script and found the program... (3 Replies)
Discussion started by: lilili07
3 Replies
8. UNIX for Dummies Questions & Answers
Experts,
Hello !
Im running into something that I cant seem to find an answer to. I have a script and it does the following set of actions -
1. Cd to one specific directory
2. Look for all the files that contain a string and once a occurence of the string is found,
3. Pipe that output to... (8 Replies)
Discussion started by: OMLEELA
8 Replies
9. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT SUSE
exo-open
EXO-OPEN(1) Xfce User's Manual EXO-OPEN(1)
NAME
exo-open - Open URLs and launch preferred applications
SYNOPSIS
exo-open [[url]...]
exo-open --launch [category] [[parameter]...]
DESCRIPTION
exo-open is a command line frontend to the Xfce Preferred Applications framework. It can either be used to open a list of urls with the
default URL handler or launch the preferred application for a certain category.
INVOCATION
exo-open either takes a list of URLs and tries to open each of them using the default handler, or, when using the --launch tries to launch
the preferred application for a certain category, optionally passing any number of parameters to the application.
Options
-?, --help
Print brief help and exit.
-v, --version
Print version information and exit.
--working-directory directory
When using the --launch option and this option is specified as well, the application will be run in the given directory. This is
primarily useful when running the preferred TerminalEmulator from another application and you want the command in the terminal window
to be run in a specific directory.
--launch category parameters...
Launch the preferred application for the given category with the optional parameters..., where category is either WebBrowser,
MailReader or TerminalEmulator.
If you do not specify the --launch option, exo-open will open all specified URLs with their preferred URL handlers. Else, if you specify
the --launch option, you can select which preferred application you want to run, and pass additional parameters to the application (i.e.
for TerminalEmulator you can pass the command line that should be run in the terminal).
COMPOSING EMAILS
exo-open allows users and developers to open the preferred email composer from the command line by simply invoking exo-open
mailto:USER@HOST.TLD. This will open the composer window with USER@HOST.TLD as the recipient. This syntax is supported by all MailReaders.
In addition the MailReaders that ship as part of libexo also support extended mailto:-URIs (but be aware that user-defined mailers do not
necessarily support this), which allows you to also specify default values for the subject and the body of the mail, add additional
recipients (both Cc: and To:) and attach files to emails. For example mailto:foo@foo.org?cc=bar@bar.org&subject=Foo&attach=/foo/bar.txt
tells the composer to start an email to foo@foo.org and bar@bar.org with Foo in the subject and the file /foo/bar.txt attached to the
message.
AUTHOR
exo-open was written by Benedikt Meurer benny@xfce.org.
This manual page was provided by Benedikt Meurer benny@xfce.org.
Xfce 12/12/2009 EXO-OPEN(1)