Software :: Formatting Output From Application?
Jun 19, 2011
I'm using Busybox's Hush shell on an appliance running uClinux, and would like to make sure I'm not packing shared libraries that aren't actually used by any application. I couldn't figure out how to compile "ldd" for that environment, but I could compile "readelf" which does the job:
Quote:
find /bin -type f -print0 | xargs -0 ./readelf -d
File: /bin/myapp
Dynamic section at offset 0x7f4c contains 20 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.0]
I was wondering if it possible to format the output so that I would get something like this instead:Quote:
/bin/myapp requires: libgcc_s.so.1, libc.so.0
View 2 Replies
ADVERTISEMENT
Feb 25, 2011
I'm trying to format the output of ls -l, any help is appreciated
Quote:
[david@barca boot]$ ls
efi
grub
david@barca boot]$ cd efi/
[david@barca efi]# ls
EFI
[david@barca efi]# cd ../grub
[david@barca grub]# ls
device.map
now to long list files in each directory using one line:
Quote:
[david@barca boot]$ ls -l *
efi:
total 2
drwxr-xr-x. 3 root root 1024 May 13 2010 EFI
grub:
total 319
-rw-r--r--. 1 root root 70 Oct 26 17:12 device.map
How can I format the output of ls to get it all in single lines:
Quote:
drwxr-xr-x. 3 root root 1024 May 13 2010 efi/EFI
-rw-r--r--. 1 root root 70 Oct 26 17:12 grub/device.map
Any thoughts?
View 4 Replies
View Related
Sep 27, 2010
I'm writing a script that gives me some pertinent info about my servers, and the last little piece I need to figure out is the process list. There are going to be non-technical people looking at the output of the script and I'm trying to make it as simple as possible.
Right now, if I do ps -ef | grep <process> | grep -v grep
It obviously shows me the process, but the problem is that there is 4 lines of info in front of the process. ie
root PID date time java -1024 -cp oh,my,god,there,is,so,much,data,it,carries,on,for,4,lines,I,want,to,shoot,myself,trying,to,read,it,f inally,in,the,end,there,is,a,space /here/is/the/process
I'd like the output to be something like this:
PID: #### Process: /here/is/the/process
I've thought about how I could take the output and use awk or sed but I know there is probably an easier way to do it with perl.
View 12 Replies
View Related
Jan 14, 2010
Does anyone know of a application that will use plain text, but allows the customizatino of width and lenth of the number of characters?
Looking to set my footprint to be 78 characters wide (by) 59 characters high.
View 2 Replies
View Related
Feb 12, 2011
I have new external usb drive which I'm trying to format to NTFS so I can also use in in windows. I've set it up using fdisk
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x604a2a7d
Device Boot Start End Blocks Id System
/dev/sdd1 1 60801 488384001 7 HPFS/NTFS
And tried formatting using
mkfs -t ntfs /dev/sdd1
However I get the following error
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
Error writing to /dev/sdd1: Input/output error.
Error writing non-resident attribute value.
add_attr_sd failed: Input/output error
Couldn't create root directory: Input/output error
View 5 Replies
View Related
Oct 20, 2010
I'm looking into building a media server that will output to 2 channels. I'd like to use Ubuntu however, if there's a better alternative, I'd be open to using it. I'd have 2 audio and video cards for output and what I'm interested in knowing is if there's a way to set the audio output to a specific card per application or workspace. Is there an easy way of doing this?
View 1 Replies
View Related
Apr 24, 2010
I want to output two applications one to a headphone and another to the regular speakers, what app can I use?? it would be better if I don't have to move from audio player, I tried with alsa sound mixer but for some readon it doesn't list the speakers
View 1 Replies
View Related
Jan 22, 2010
I currently have my desktop setup with two displays, one of them being my living room tv that I run Boxee on. My problem is that all the audio runs through the same speakers preventing me from listening to music or gaming at the same time as when Boxee is in use.
I would like to know if it's possible to split the audio so that an application of my choosing only outputs sound through my headphones. I was thinking it would be possible with some of the controls in pulse, but if it is I cannot figure it out.
View 2 Replies
View Related
Sep 12, 2010
I want to create a small simple application that will let me change the Output of the Sounds option to go from speakers to my headphones. I can do this easily enough through System --> Preferences --> Sound, but I'd like to create a GUI front end for me to do this. This is more as a learning exercise than anything else.What is the best language for me to build the windows to do this? Also, how do I find the commands to let me toggle the sound settings? Where are they documented? I'm using Ubuntu 10.04.
View 2 Replies
View Related
Apr 29, 2010
I cant seem to get the sound working and when I click on perference then sounds and go to the output selection it has only dummy output as a option.
View 3 Replies
View Related
Mar 7, 2010
I installed KMplayer but I cant play video files...No video output but can get only the audio output...So how to make this work for videos?
View 2 Replies
View Related
Jan 25, 2011
Running 10.10 and win 7 on my HP dv6-2150us laptop and I'm having a few issues.
First how do I get HDMI audio output to my TV? I think I have just a integrated Intel graphics card. It works fine in windows but I can't seem to get it to work in Ubuntu. I tried searching but couldn't find anything pertaining to this issue.
View 3 Replies
View Related
Jan 6, 2011
I am sure that this is very simple but I have installed sound juicer and the gstreamer plug ins. The problem is i still cannot select MP3 as an output output option
View 3 Replies
View Related
Jul 19, 2011
I don't know anything about ubuntu. Could you guys help me out. I'm pretty knowledgeable with windows if you guys need a printout of something let me know. My friends getting really frustrated about this. Help!!i
So here's the situation. He plugs his audio jack into his computer and then into the speakers but it still plays from the computer speakers.
View 7 Replies
View Related
Mar 27, 2010
I finally got audio working on my ubuntu 9.10 desktop... now I am having sound issues watching movies from a network share.The sound device continually randomly changes to "dummy output device" and then there is no sound output. The sound icon dissapears on the toolbar. To get it back and audio to start working I have to $sudo alsa force-reloadIt seems to happen everytime there is a network delay, the movie will stop for a second and then when it plays the sound is gone
View 1 Replies
View Related
Feb 17, 2010
application to monitor application wise network usage?
View 3 Replies
View Related
Jan 31, 2010
I've downloaded VideoLan (VLC) via Yast but the icon was placed in the audio folder. How do I move it to the video player folder? Also, where are additional icons stored? I run SuSE 11.2 (boxed version) with KDE.
View 9 Replies
View Related
Mar 16, 2010
How do I make an application launcher in the panel launch more than one application? Is there some sort of a symbol I type between the apps in the command line? Like ;
View 1 Replies
View Related
Apr 30, 2011
when an application is opened or minimized the icon of that particular application is not showing up in the top bar of ubuntu 11.04...how can i see the icons in the top bar?
View 1 Replies
View Related
Jun 30, 2009
I am getting no packages listed in Gnome application manager gpk-application 2.27.2. I have tried 'yum clean all' and get the following error messages.
View 3 Replies
View Related
Apr 14, 2010
So, I have this application called Impact, it is an explicit time integration Finite Elements code written in Java...
[url]
I untar the pack, and launch the application calling a script, from within the untarred folder,
Code:
This launches a gui which allows me to setup a case, which needs some setup file, tipically some *.in and a mesh file, tipically some *.msh.
Other mode of executuion consists of calling the setup file as argument to Impact.sh script ( CLI execution mode, for g33k5 )
My problem is : I have packed the whole stuff into a Slackware .tgz, that places it in /usr/local/Impact, and placed a calling script in /usr/local/bin,
Code:
Code:
I decided to hack the ImpactGUI_OGL_linux_amd64.sh script from
Code:
Code:
no avail,
Code:
even after adding /usr/local/Impact/bin to PATH... won't go...
I can run this thing from within its directory... but I do not like messing within the directories of my applications, this is why I sent this to /usr/local, and placed a calling script in /usr/local/bin...
View 4 Replies
View Related
May 24, 2010
I have installed Redshift But do not know what to do Next.There is no icon for the application or anything to launch the application.
View 1 Replies
View Related
Feb 19, 2009
I am trying to troubleshoot an application that is generating several segfaults with an error 14, but the application is not crashing.The program continues to run. I would assume I can connect to a running process to debug it, but I'm not sure what to gather. The program has several background processes associated with it so I'm sure I'll need to attach to the actual internal process. Does anyone have any experience in this to offer some insight?
View 3 Replies
View Related
Mar 4, 2011
Is possible to have two identical sound card outputs? For example, is I want to use two headphones at the same time.
View 6 Replies
View Related
Nov 22, 2010
Is there any way to partition off say 40GB of a 250GB drive (only 5GB used) into an NTFS partition to install windows Vista SP1?? I have tried the System -> administration -> disk utility, but I can not figure out how to partition in it.
View 7 Replies
View Related
Apr 5, 2011
I'd like to know if it's possible in my program (C/C++) to create a filesystem on a partition, maybe with advanced options too. I don't want to call the shell and execute the usual commands to do that, so I wonder if there are some native Linux syscalls or external libraries to do that.
View 6 Replies
View Related
Mar 7, 2011
I have an command to read inputs from file2 and replace the content in file1. Issue is that the op is coming in a single line as gsub and split functions don't recognize new line characters.
Code:
awk 'NR==FNR{gsub(/input./,""); split($0,a," = ");b[a[1]]=a[2];next} {gsub(/@/,"");for (i in b) gsub(i,b[i])}1' $t2 $t3
This gives belwo op:
[Code]....
View 14 Replies
View Related
Mar 14, 2016
How to fill in zeros unrelocated space on hdd.
dd if=/dev/zero of=/dev/?????
View 14 Replies
View Related
Mar 9, 2010
What's the easiest way of formatting SD cards to FAT32 in Fedora linux?
Also, I'm having trouble when I try to unmount the volume of a SD card, there's 0.8 GB being used that I expect to be cleared when I choose to 'empty trash', everytime I select 'unmount volume' the SD card window just shuts down instead of clearing that space.
View 2 Replies
View Related
Jan 9, 2011
I've been asked to move data from an old external hard drive to a new one, and to make the new one compatible with the Macintosh. (The old drive's USB connection has died, and I'm connecting to old the drive using a PC card that provieds an eSATA to the drive. The recipient's Macintosh doesn't have a PC card slot, so she can't access the old drive anymore. Hence, the new drive.)
Naturally, I'm doing this data transfer using Linux. I've discovered that I can format the drive as HFS+ using mkfs.hfsplus from the hfsprogs package. But I need to know: do I need to do anything special with the partition table? Is there a special Macintosh partition table format that I need to format this disk to? If so, what tools can I use to get the right format for the partition table?
View 1 Replies
View Related