Solaris
   12 tags on

Solaris

  • All Sites

0 answers

forward function and variables into sudo su - <user> <<EOF

my question is simple but I'm not possible to find out solution. I have declared function and variable in bash/ksh and I need forward them into sudo su - << EOF: #!/bin/bash lof_f() { echo ...

0 answers

I can't open unity tweak tool

Can anyone help me, i cant seems to open unity tweak tool, either from the launcher or dash or terminal, in terminal i got these error t***@t***-desktop:~$ unity-tweak-tool Traceback (most recent ...

2 answers

mm:ss calculator from shell prompt?

From a shell prompt, what's the fewest-keystrokes way to calculate the mm:ss value of expressions such as 4:33 + 0:20 - 2:45 = 2:08 ? This is for interactive use, not for use in a script, or ...

1 answer

Unix Permission Issue

I am restarting the web logic services using my user-id but when I check the process owner and log files of web logic I can see the owner as root. I have checked web logic side and am sure that it ...

1 answers | 9 mins ago by Ankit on Super User superuser.com
0 answers

How to CONCAT quotes while selecting any data from the table

The file (date.sql) has the below commands date=2014-12-03 SET VAR vDate $date insert into (Some_table) (date,location) select $vDate , location from (let say from table ...

1 answer

Save on webpage with command line like in google chrome

I need to grab one webpage (single page, not all site) with all his assets(images/css) in command line. I really like how google chrome do it - if I save webpage I get single html file and single ...

2 answers

variable of Variable

I have to print a variable value which is art variable. eg. variables are A = X Z_X = Test Set in shell using setenv A X setenv Z_X Test I want to print $Z_X value using $A I am trying but ...

2 answers | 58 mins ago by user1495523 on Stack Overflow stackoverflow.com
2 answers

How to handle space in a line in a file using shell script?

My file tool.txt which contains DC OPTIMIZER,b_csw_load_14,s_get_bn_master_14,m_get_bn_master, DC OPTIMIZER,b_csw_load_14,s_get_cu_qp_zones_14,m_get_qp_zones, ...

2 answers | 1 hour ago by user2391806 on Stack Overflow stackoverflow.com
2 answers

Remove GPT filesystem on USB

I have an old 8GB USB stick with a GPT filesystem hanging around. I'd like to move it to a more familiar fs, as NTFS or FAT32, but the usual mkfs doesn't seem to work since there is no /dev/sdb1 (as ...

2 answers | 1 hour ago by cronos2 on Super User superuser.com
2 answers

how do I change the field delimiter after the nth column

I have a file with thousand of lines like below 32322621661395926569;adverline;www.societe.com_societe;identite;Salarie2;fiche;btp_et_construction;CA4 ...

2 answers | 1 hour ago by Andy K on Stack Overflow stackoverflow.com
2 answers

Inplace migrating ZFS RAIDZ with 3 drives to 4 disks, when pool has more than 1/3 of free space

On creating my RAID-Z pool on ZoL I assumed, I could easily just drop-in additional disks later on. Meanwhile I learned that this is yet not possible. But... I had a similar problem on creating my ...

2 answers

Convenient shell idiom for inverse “use alternative value”

I'm looking for a quick POSIX shell idiom that does the inverse of ${VARIABLE:+word} "use alternative value" parameter expansion. That is, when VARIABLE is null or unset, I want word, but when ...

2 answers | 1 hour ago by pilcrow on Stack Overflow stackoverflow.com
1 answer

How is ksh93 so fast?

So, in general, I tend to look to sed for text processing - especially for large files - and usually avoid doing those sorts of things in the shell itself. I think, though, that may change. I was ...

0 answers

Delete files with too long paths

I'm looking for a quick, easy and hopefully automated way to delete files and folders with too long paths / filenames. There are a lot of duplicate answers here on SU, for example: How to delete a ...

1 answer

Interactive Script; Prompt within a loop

How do I prompt a user for input from a shell script (ksh) within a loop in which a file is read? The script reads in a file. In each loop pass the user will be asked if he wants to cancel or not? ...

1 answers | 2 hours ago by Chris on Super User superuser.com
3 answers

Merge CSV files using join/awk/sed

Could you please help me to find THE bash command which will join/merge those following cvs files "template.csv + file1.csv + file2.csv + file3.csv + ... + fileX.csv" into "ouput.csv". For each line ...

3 answers | 2 hours ago by Adrien on Stack Overflow stackoverflow.com
2 answers

Print process information in solaris

I am new to solaris, how can I print complete process information in solaris. Command printing truncated string ps -ef | grep "process_name" this command is working in linux but not giving full ...

2 answers | 3 hours ago by user4383366 on Stack Overflow stackoverflow.com
2 answers

looping a command without waiting for the first run

I want a better way to do this: while sleep 60; do mysql -e 'show processlist'; done This is better than: while mysql -e 'show processlist'; do sleep 60; done ... because if I type a ...

2 answers | 3 hours ago by mc0e on Unix & Linux unix.stackexchange.com
1 answer

ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension

I recently reinstalled rbenv as it helped with other issues. Now I receive a completly new issue with a particular project. Similar to issue already posted: nokogiri - ERROR: Failed to build gem ...

2 answers

Proxy authentication with terminal Ubuntu 14.04

I would like to access the internet to update files etc. from the terminal on a secured proxy network. I've already tried the following: Adding to /etc/apt/apt.conf, /etc/apt/apt.conf.d/01proxy, ...

1 answer

mounted filesystem without journal. Opts: (null) while mounting ext4 fs

I am using Beaglebone black with NFS, I have formatted internal eMMC with ext4 filesystem, when i mount the file system using following command message popups telling filesystem is mounted without ...

1 answer

Obtaining Solaris Device path

I am working on Solaris 12 and I am trying to get device path like this: /pci@0,0/pci108e,4856@1f,2:devctl I could obtain the this path through CLI using prtconf -v. How could I obtain the path ...

1 answer

CROSS compilation of BTRFS file system

We are developing Beaglebone black based custom board, We are planing to use eMMC for storage. To decide the file system on the eMMC we want to cross compile Btrfs user space utility, Does anyone know ...

0 answers

Evitar que o script siga links simbólicos

Com o script em baixo, é realizada uma pesquisa a todos os alojamentos existentes na diretoria indicada de forma a obter os endereços de email associados a cada alojamento: #!/bin/bash # Scan All ...

0 answers

How do I can configure Firefox and Terminal via internet Ubuntu 14.04?

I've installed Ubuntu 14.04 and with I've broadband connection setup but it's only some application via internet , But I can't access Firefox and Terminal via internet see screenshot , when Firefox ...

1 answer

How to aggregate code changes between commits

I want to see something like an aggregated git log --shortstat --oneline. Instead of the following, 2fd8b62 quote sending successfully 5 files changed, 26 insertions(+), 40 deletions(-) 5bc977e ...

1 answers | 4 hours ago by vedant1811 on Stack Overflow stackoverflow.com
7 answers

Unix: How to delete files listed in a file

I have a long text file with list of file masks I want to delete Example: /tmp/aaa.jpg /var/www1/* /var/www/qwerty.php I need delete them. Tried rm `cat 1.txt` and it says the list is ...

7 answers | 4 hours ago by Alexander on Stack Overflow stackoverflow.com
1 answer

How to extract the filename and path from sub directories and need to write the output into a csv file using unix shell script

I need to extract the filenames as well as path in a csv file from different subdirectories in a parent directory using unix shell script . Requirement : I have different subfolders in a parent. ...

1 answers | 4 hours ago by Sudheer Inamana on Stack Overflow stackoverflow.com
2 answers

watch grep on file doesn't work properly

I'm trying to grep a string with spaces on file, the grep it self works great with this command: grep ": error" makeErr.txt ...results as expected... now I'm trying to put this command inside ...

2 answers | 4 hours ago by Vladp on Stack Overflow stackoverflow.com
1 answer

What is the difference between setpgrp and tcsetpgrp

int tcsetpgrp(int fildes, pid_t pgid_id); and int setpgrp(void); I don't really understand difference and purpose of this two functions. Of course man page has been previously read. But I ...

1 answers | 4 hours ago by baehhugjbvfm on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3