9 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
3. Shell Programming and Scripting
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies
4. 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
5. UNIX for Dummies Questions & Answers
I don't know if there's a better name for what I call "file collision"... Basically, I have a script that I'm using for quick and dirty MySQL testing. Here's the idea...
#!/usr/local/bin/bash
for num in `jot $1` ## Yep, jot... this is FreeBSD
do
/usr/bin/time mysql --user=root... (2 Replies)
Discussion started by: treesloth
2 Replies
6. Solaris
Hi All,
I'm actually trying to configure a Qlogic HBA on a solaris9 connecting in a Brocade SAN. I installed Solaris9 and now trying to look at FC devices..
bash-2.05# luxadm -e port
Found path to 0 HBA ports
bash-2.05# luxadm probe
No Network Array enclosures found in /dev/es... (7 Replies)
Discussion started by: ilan
7 Replies
7. 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
8. UNIX for Dummies Questions & Answers
Hey All,
Let me start out w/ I have serched the forums and found this to be a typical problem. None of the threads have been able to help in my situation though.
I know cc or gcc needs to be installed in ...bin]# (or lead the path of the app to wherever gcc is when compiling) so the app can... (4 Replies)
Discussion started by: SloYerRoll
4 Replies
9. Solaris
I recently got this new old server from a friend. I just installed a fresh version of Solaris 10 on it. I have put a static IP of 192.168.100.10 the server. Their is no subnetting scheme on the network. And I made the hostname "SunServ." And I also changed the folder "/etc/inet/hosts" because I... (4 Replies)
Discussion started by: louisd11
4 Replies
fitset(8) System Manager's Manual fitset(8)
Name
fitset - determine if subset fits on a system
Syntax
fitset [ -d ] [ root-path ]
Description
The utility is used to determine if the files in a software subset will fit on a system.
Subset inventory records are read from the standard input. For each record, the space required to install the file described in that record
is deducted from the available free space on the file system to which it would be installed. Only currently mounted UFS file systems are
used in the computations. Space requirements for files already on the disk will be modified to account for the size of the resident copy.
After all records have been read, the free space computed for all file systems is checked. If the space required to install the files would
cause any file system to be more than 90% full, returns an exit status of -1.
The utility uses to size all subsets before attempting to install them. The root-path argument is the pathname of the top directory for
the hierarchy into which the files are going to be installed. If no root-path is specified, the directory '/' is assumed.
Options
-d Enable debugging. This will make print voluminous status information on standard output. This information is the initial file system
statistics, the file system location of the file from each input record and the statistics for the file system after the space
required to install the file has been deducted.
Restrictions
NFS mounts are ignored. If software would be installed to an NFS mounted directory, it is sized against the file system containing the NFS
mount point.
The program does not detect the use of symbolic links in paths to root-path or any of the mount points. This can cause to size a subset
incorrectly if root-path is a symbolic link or a symbolic link exists in the path of any of the pathnames used with the command to mount
local file systems.
Examples
To determine if a particular subset will fit on the system, redirect the contents of the subset inventory file into For example:
fitset < /usr/etc/subsets/ULTUUCP400.inv
To determine if the same subset will fit in a hierarchy rooted at the command would be:
fitset /var/tmp/root < /usr/etc/subsets/ULTUUCP400.inv
Diagnostics
fitset: root path must be absolute
A relative pathname was specified for root-path. This path must be absolute.
fitset: cannot stat root-path (error message)
The root-path cannot be accessed. The error message provides more information.
fitset: root-path is not a directory.
Either root-path is not a directory or it is a symbolic link to something which is not a directory.
Files
Subset inventory files
See Also
stl_inv(5), setld(8)
Guide to Preparing Software for Distribution on ULTRIX Systems
fitset(8)