Hi, I'm pretty new to Unix and I just have a question concerning making a script executable without putting the "sh" command before it. In case it makes the difference I am on an Apple computer using the Terminal. Anyway here is the little test code I wrote followed by the commands I took to try to... (5 Replies)
Here is what I have:
#!/bin/bash
# Setup year date and month
YR=`date +%Y '{print $6}'`
MON=`date +%b '{print $2}'`
DAY=`date +%d '{print $3}'`
file=$YR$MOY$DOM
# clear
# Dump database using USER/PASS to ..sql
mysqldump --user=me -ppass database > database-db.$file.sql
The YR, MON and... (2 Replies)
hello experts
cany any one help me i want to make one script which can rlogin to another machine .
but it should not ask me username/password from me of another machine it should take the username and password from the script only.
please help me out.
regards,
shary (2 Replies)
Hi ,
I am new to shell scripting I want to make script as to execute followng command
mysqldump -u (user name) -p(password) database name>filename.sql
this file saves with current date and time
and execute automatically at particular time which I give (10 Replies)
I am trying to create a program called tasklog that integrates with one of my online accounts, to keep track of what tasks I have been working on.
On login, I'd like it to display (up to) the five most recent entries, then ask me what I plan to work on during the new session. I then will type an... (3 Replies)
Hello, im a new user on this site and learning scripting very slowly at a understanding pace. However i am up with a challenge and require help completing this.
The script has to include arguments, variables, decisions and loops. So the script is about calculating the broadcast address for any... (5 Replies)
Hi all,
I'm new to Unix so just wanted some help.
I've been self learning and came accross a question online that I was trying. It is to make any shell script executable, the name of the file is to be made executable.
I would use nano and type in something like
#! /bin/bash
Chmod +x... (4 Replies)
Hello experts,
I'm trying to make a trace (unix log) in hope to see why I have differences in some bases :
I putted at the first { and in the last line } > $DATA_SAS 2>&1
Is it a right command ? Do you have another solution ?
thank you,
regards, (7 Replies)
This script is executed whenever a new vehicle is added to the cycle-motor park
of campus. The script asks for the following information about the car and adds a new
line to the vehicle file.txt: name (name of an animal, unique identifier), color, mark,
model, type (e.g., electrical, manual),... (2 Replies)
Discussion started by: andre2222
2 Replies
LEARN ABOUT CENTOS
enum_ieee80211_channel_flags
ENUM IEEE80211_CHANN(9) Device registration ENUM IEEE80211_CHANN(9)NAME
enum_ieee80211_channel_flags - channel flags
SYNOPSIS
enum ieee80211_channel_flags {
IEEE80211_CHAN_DISABLED,
IEEE80211_CHAN_PASSIVE_SCAN,
IEEE80211_CHAN_NO_IBSS,
IEEE80211_CHAN_RADAR,
IEEE80211_CHAN_NO_HT40PLUS,
IEEE80211_CHAN_NO_HT40MINUS,
IEEE80211_CHAN_NO_OFDM,
IEEE80211_CHAN_NO_80MHZ,
IEEE80211_CHAN_NO_160MHZ
};
CONSTANTS
IEEE80211_CHAN_DISABLED
This channel is disabled.
IEEE80211_CHAN_PASSIVE_SCAN
Only passive scanning is permitted on this channel.
IEEE80211_CHAN_NO_IBSS
IBSS is not allowed on this channel.
IEEE80211_CHAN_RADAR
Radar detection is required on this channel.
IEEE80211_CHAN_NO_HT40PLUS
extension channel above this channel is not permitted.
IEEE80211_CHAN_NO_HT40MINUS
extension channel below this channel is not permitted.
IEEE80211_CHAN_NO_OFDM
OFDM is not allowed on this channel.
IEEE80211_CHAN_NO_80MHZ
If the driver supports 80 MHz on the band, this flag indicates that an 80 MHz channel cannot use this channel as the control or any of
the secondary channels. This may be due to the driver or due to regulatory bandwidth restrictions.
IEEE80211_CHAN_NO_160MHZ
If the driver supports 160 MHz on the band, this flag indicates that an 160 MHz channel cannot use this channel as the control or any
of the secondary channels. This may be due to the driver or due to regulatory bandwidth restrictions.
DESCRIPTION
Channel flags set by the regulatory control code.
AUTHOR
Johannes Berg <johannes@sipsolutions.net>
Author.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 ENUM IEEE80211_CHANN(9)