Unknown fs on usb?
Code: Error mounting: mount exited with exit code 1: helper failed with: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, Â Â Â missing codepage or helper program, or other error...
View ArticlePython for text manipulating
Dear All, I am trying to write a python code for reading a fixed number of lines from a big file then save those pieces into another file as columns. I think sample file is necessary for understanding:...
View ArticleTeradata fastexport in ksh
Hi, I am trying to use Teradata fastexport in ksh, but getting error as below Code: Â temp1.ksh: line 7: syntax error at line 10: `newline' unexpected below is my code: Code: Â #!/bin/ksh...
View Articlenetstat
When running netstat -i from the Command Terminal, It returns with 21 different connections.. The addresses all look like this: Code: ::1 fe80:1::1 10:dd:b1:a5:c4:ba with Network names like Code:...
View ArticleGetting output with sed without wriitng to a file
HI I am trying to grep 3 characters from hostname and append a character at the end. I tried as in the following: Code: root@abag3:~# hostname | cut -c1-3 hyu Now I am trying to append "g" at the end...
View ArticleWriting output to a file in columns
Hi I am trying to write output to a file in columns I have file in the follwoing: Code: # cat file abc def # I am trying to write next output as like Code: # cat file abc 123 def 345 # :mad:
View ArticleMultiple File renaming with a twist
Hi I can do simple file renaming but this task is slightly more troublesome Ive got a guy that gives me multiple .pdf filles in a directory named something like Code: 3412345.pdf 4565465.pdf...
View ArticleRe-keying parameters in Wpa2 - psk setup
Hi folks, Considering the configuration of an AP as a Server in the hostapd.conf file: According to: w1.fi/cgit/hostap/plain/hostapd/hostapd.conf wpa_group_rekey parameter is: Time interval for...
View ArticleExtra Space in output - remove
Hi All I am trying to perform the below operation - Code: count=`cat abc.txt | wc -l`  echo$count  5  Head=Start"$DATE"00000"$count"File  echo $HEAD  START15020300000 5File There is a space coming...
View ArticleSolaris 10 audit, need to catch redirections
Hello, I've installed solaris audit on a Solaris 10 SPARC system. Latest patch 143962-04 is installed. My problem is that while I can catch all arguments and processes created, I cannot catch a...
View ArticleSendmail Error
Hello, we have a mailserver named vision.mailhost.com 192.168.10.10 ( solaris 10) We have an test server named visionway 192.168.10.5 ( solaris 10) we want to run a cron job on test server and send an...
View ArticleSudo to user other than root but do not allow sudo to root
I have a set of RHEL 5 boxes running our ERP software on Oracle databases. I need to allow my DBA's to su to oracle and one other account (banner) without knowing the oracle or banner password. But I...
View ArticleCould you help me writing a script showing which network connections are...
Could you help me writing a script showing which network connections are currently active? Means output should be something like: "eth0, wlan1, wlan3" Problem: The output is supposed to happen on a...
View ArticleSwitch user terminal error
Hello All, Here I am trying to login a Linux machine as admin user from a Solaris box.. & then switch to root user.. Code I use: Code: ssh admin@<IP> << END su - root << A echo...
View ArticleNeed some help
Hi guys. I would need some help really fast.. I have to show a user as a parameter and its group. If the user doesn't exist the script will show "user doesn't exist". How could I do that? UNIX
View ArticleAny Good resources to learn Python
Hi Guys, I will be doing my masters in Comp science in a few months. I would like to get intimate with python by ideally doing a project based tutorial. Is there any good resource for learning python...
View ArticleAdding a column from another file, no identifiers but
I have a csv-file with ; as delimiters and all fields are enclosed in double quotes. The first file has more line changes, but the item amount is the same, which is 7 in this case. The other file only...
View ArticleHelp with ksh Script not resolving '@' in ls command
Hi all, We've been trying to find a way to get a command to work within a ksh with no success. We are attempting to list various files with different hlq's like this Code: ls...
View ArticleRemoving directory with leading hyphen from root directory
I know that this basic question has been asked many times and solutions all over the internet, but none of the are working for me. I have a directory in the root directory, named "-p". Code:...
View ArticleAdding tags in between sentences with awk
Hi, I need an Code: awk to modify the following file. It is 2-column tab-separated. Code: Hi PP my VBD name DT is NN . SENT Her PP name VBD is DT the NN same WRT . SENT Code: <s> Hi PP - my VBD -...
View Article