0
votes
0answers
32 views

Redirection from files using operator < in C

I wrote a program that simulate the bash command in Linux, in C. It works perfectly with inputs from the keyboard, meaning: application > file: redirect stdout of app to file(write output to ...
0
votes
1answer
20 views

Need reference on the usage of bist commands

I have an embedded device that has bist on it. During boot up I can stop in uboot and get into bist. When I do helphere I see a list of commands. I am however unable to use them because there is not ...
3
votes
1answer
71 views

How to test the touch screen on embedded devices like iPhone / iPad / Kindle? [closed]

I want to test the touch panels on embedded devices like iPhone, iPad and Kindle against following criteria: Do a gesture, like tap, swipe, pinch ( zoom in/out) 10000 times and validate that every ...
3
votes
1answer
113 views
+100

How can I test the RAM for data corruption on an ARM-based system?

I have an embedded device. It is ARM based, with Linux 2.6.31 and has 256 MB RAM. I wanted to get some ideas/tips on what is the most effective way to test the device RAM for data corruptions. Is ...
-6
votes
1answer
45 views

Linux: create list of text with multiple operators

I want to make a list like this: 7785237_770x770_de3b540dc13ed50023d17854513b40aa07e50a6a 732308_770x770_ec5c344c0114011a5306b31142ff9b001813f6d6 ...
0
votes
0answers
33 views

How can I compile getopt and getopts separately? [migrated]

I am looking at the source for bash, and I was able to create a getopts.c using the mkbuiltins executable. Now I am trying to create separate getopt and getopts binaries. How can I go about doing ...
0
votes
1answer
25 views

Fedora 7 server export in .bashrc not getting set

I'm trying to set the JAVA_HOME environment variable in my .bashrc but every time I log back in it gets unset again to its original value, below is my .bashrc file # .bashrc # User specific aliases ...
0
votes
4answers
57 views

Renaming files works, but soft links point to the old names. How can I fix that?

For example, I'm renaming many files inside a tree like this: [bash]$ for file in `find . -name "*gsf*"`; do `mv $file ${file/gsf/msf}`; done That renames all the instances of "gsf" in file names ...
7
votes
3answers
77 views

Change the color of the file name text

I am writing scripts to initialize and configure a large system with many components. Each component has its own log file. I would like to change the color of the component file name to red whenever ...
2
votes
3answers
67 views

How to insert tab character in “dialog”?

I'm using the linux "dialog" utility to create a simple UI. However, there is a text in infobox and I want to insert tab characters in order to properly align the text. But it seems, that dialog ...
1
vote
1answer
69 views

What is the difference between $var and “$var”? [closed]

Possible Duplicate: $VAR vs ${VAR} and to quote or not to quote I assigned a variable var a value as follows: pradeep@pradeep-laptop:~$ var="Pradeep > is > a good > boy" ...
3
votes
2answers
115 views

How can I force a bash loop to end if it runs x times in x seconds?

I'm trying to grab batches of input from a remote pipe via ssh. My script below works ok, but I would like to add some sort of check into it so that if something were to go wrong or break the loop ...
2
votes
1answer
71 views

Replace variable read from a text file (so they can be interpreted)

I tried several stuff with not luck so maybe one of you experts can help me (I hope!). I want to store in a text file some select statement that contain variables like a date: $ cat res.txt select ...
0
votes
4answers
241 views

Is there a difference between sudo su - root and sudo -u root -H /bin/bash?

Like title says, is there a difference between these two commands : sudo su - root sudo -u root -H /bin/bash I'm using GNU/Linux, if that makes a difference.
0
votes
1answer
114 views

Connecting various process attributes reported by top, ps, /proc/pid/statm, /proc/pid/status, /proc/pid/smaps [closed]

Here are some of the common attributes I figured out: top(VIRT) , smem(VSS), /proc/pid/statm (1st entry in pages), /proc/pid/status (VmSize), ps(VSZ) top(RES) , smem(RSS), /proc/pid/statm (2nd entry ...

1 2 3 4 5 6
15 30 50 per page