Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live
↧

NTLMv2 Verification Using Linux(rpcclient®shell)

I am writing a script and am trying to figure out what tool I can use to verify that a windows system is using NTLMv2 using linux? I have been using tools like: Code: rpcclient regshell I now know what...

View Article


Generate 16 digit positive random Numbers

Hi Unix Gurus, I have a requirement to generate positive random 16 and 13 digit numbers. Here is the script I have so far..... Code: number=$RANDOM$RANDOM$RANDOM$RANDOM; let "number %= 10000000000000";...

View Article


call more options on if

Hi all, I'm trying to make a script that will help me a lof on some configuration, what this should do is to check the files if they exist ,if not the script will send me a mail to notify me that the...

View Article

Image may be NSFW.
Clik here to view.

Whiptail menu, getting back the variable

Hi all Only learning so if any mistakes, let me know I am trying to create a menu box with Whiptail, taking in the variables from a txt.file called Name.txt which has just 4 names listed for now, one...

View Article

how to configure a audit in global zone that will audit all the zone

Hi everyone, how i can configure a single audit service in the global zone for all zones, on solaris BSM. I will be glad to hear back from you. Thanks and Regards

View Article


SFTP fails from crontab but works from terminal

Dear community, I'm driving crazy with a strange issue. I have a simple script to transfer a file to a remote system: Code: #!/bin/bash echo "put /tmp/server.log" > /tmp/server1_transfer.sftp sftp...

View Article

up2date command not found on Ent. 6.2 install

Folks; New to redhat coming from hp-ux.. After fresh install of Ent 6.2, can not find up2date on the system except the manpage .. Does 6.2 stop using up2date ?? Googled it but nothing concrete came...

View Article

Error in script, STUCK :(

Hi All, I am beginner in scripting. I wrote a simple script to perform some task. It seem to have some error in command line, Kindly somebody help. Thanks Code: #!/bin/bash date cd...

View Article


alt clone

I have two identical systems p740 with 2 lpars in each server. I dont want to install os from scratch on each lpar neither I want to use nim nor mksysb. Will it work perfectly if I install a fresh OS...

View Article


Image may be NSFW.
Clik here to view.

AWK and print next lines #3 thru #10

I have a output log file, that I want to extract some temperature measurement data. I want to AWK on the words "show chassis environment" in the original file, and extract that entire line, and then...

View Article

Adding hours and minutes to current date (Only to date not to time)

Hi, I want to add some hours and minutes to the current date. For example, if the current date is "July 16, 2012 15:20", i want to add 5 hours 30 minutes to "July 16, 2012 00:00" not to "July 16, 2012...

View Article

[Solved] Apache logs

Hi, I can't seem to find the apache logs in my system. Can anyone assist me on finding them? This was done with a RPM install. I've checked everywhere and even tried a find command with key names like...

View Article

Cron-Noob

Hi guys! Consider the following PERL script, Code: #!/usr/bin/perl my $userID = `whoami`; open(TMP, ">user.txt"); print TMP "$userID"; close(TMP); Run on the command line it works no problem. Run...

View Article


X forwarding vs Remote DISPLAY

Hello, I have a question about X forwarding. I was told that we can't X forwarding anymore, do to a security checklist. Example: Code: bitlord@server1# ssh -X server2 So we have to use the DISPLAY...

View Article

how to keep tab from being converted to space

Hi, I want to read lines from a file, and I'm using two methods 1 use Code: while read line do done<filename 2 use Code: line=`sed -n '3p' filename` however, in both of them, I notice that the tab...

View Article


Not visible hidden folder

Hi, In one folder there is a hidden folder. Whenever i do any Code: ls -a i can't see the folder. However i can get into the folder by Code: cd .foldername . Would you please help me to identify what...

View Article

set ksh script in restricted mode

Hi, I came across a post wherein you can use "set -r"(on bash) to activate restricted mode ( wherein you cant run some commands such as cd etc). Can anyone guide if we have anything similar in ksh ?...

View Article


Image may be NSFW.
Clik here to view.

Convertin IP adresses from a column to a raw + add a comma between addresses

Hi all, I have a list of IP addresses in a column in a text file name ipaddress.txt Code: 192.168.0.1 192.168.0.2 192.168.0.5 192.168.0.4 192.168.0.5 I would like to convert ipaddress.txt to have the...

View Article

Shell Script to delete files within a particular time frame under multiple...

Greetings! I'm looking for starting information for a shell script. Here's my scenario: I have multiple folders(100) for example: /www/test/applications/app1/logs /www/test/applications/app2/logs...

View Article

creating directory from scripts

Dear All, I have a shell scripts which create a directory and perform moving some files, when the script is kept where it is creating directory then it runs fine , but when the scripts is run where it...

View Article
Browsing all 16232 articles
Browse latest View live